| .. | .. |
|---|
| 18 | 18 | |
|---|
| 19 | 19 | #include <linux/nl80211.h> |
|---|
| 20 | 20 | #include <linux/pci.h> |
|---|
| 21 | | -#include <linux/pci-aspm.h> |
|---|
| 22 | 21 | #include <linux/etherdevice.h> |
|---|
| 23 | 22 | #include <linux/module.h> |
|---|
| 24 | 23 | #include "../ath.h" |
|---|
| .. | .. |
|---|
| 301 | 300 | #ifdef CONFIG_PM_SLEEP |
|---|
| 302 | 301 | static int ath5k_pci_suspend(struct device *dev) |
|---|
| 303 | 302 | { |
|---|
| 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); |
|---|
| 306 | 304 | struct ath5k_hw *ah = hw->priv; |
|---|
| 307 | 305 | |
|---|
| 308 | 306 | ath5k_led_off(ah); |
|---|