--- a/drivers/net/wireless/ath/ath5k/base.c 2009-10-07 01:58:19.000000000 -0400
+++ b/drivers/net/wireless/ath/ath5k/base.c 2009-10-07 02:19:58.000000000 -0400
-@@ -197,6 +197,32 @@
+@@ -197,6 +197,33 @@
#ifdef CONFIG_PM
static int ath5k_pci_suspend(struct device *dev);
static int ath5k_pci_resume(struct device *dev);
+{
+ int r;
+
-+ r = ath5k_pci_suspend(pdev->dev);
++ r = ath5k_pci_suspend(&pdev->dev);
+ if (r)
+ return r;
+
+ pci_save_state(pdev);
+ pci_disable_device(pdev);
+ pci_set_power_state(pdev, PCI_D3hot);
++ return 0;
+}
+
+static int ath5k_pci_resume_compat(struct pci_dev *pdev)
+ if (r)
+ return r;
+
-+ return ath5k_pci_resume(pdev->dev);
++ return ath5k_pci_resume(&pdev->dev);
+}
SIMPLE_DEV_PM_OPS(ath5k_pm_ops, ath5k_pci_suspend, ath5k_pci_resume);