hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/ath/ath5k/pci.c
....@@ -18,7 +18,6 @@
1818
1919 #include <linux/nl80211.h>
2020 #include <linux/pci.h>
21
-#include <linux/pci-aspm.h>
2221 #include <linux/etherdevice.h>
2322 #include <linux/module.h>
2423 #include "../ath.h"
....@@ -301,8 +300,7 @@
301300 #ifdef CONFIG_PM_SLEEP
302301 static int ath5k_pci_suspend(struct device *dev)
303302 {
304
- struct pci_dev *pdev = to_pci_dev(dev);
305
- struct ieee80211_hw *hw = pci_get_drvdata(pdev);
303
+ struct ieee80211_hw *hw = dev_get_drvdata(dev);
306304 struct ath5k_hw *ah = hw->priv;
307305
308306 ath5k_led_off(ah);