diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 3546504a83c4..616bdff2b6a1 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c | |||
@@ -253,10 +253,12 @@ static int ath_pci_resume(struct pci_dev *pdev) | |||
253 | u32 val; | 253 | u32 val; |
254 | int err; | 254 | int err; |
255 | 255 | ||
256 | pci_restore_state(pdev); | ||
257 | |||
256 | err = pci_enable_device(pdev); | 258 | err = pci_enable_device(pdev); |
257 | if (err) | 259 | if (err) |
258 | return err; | 260 | return err; |
259 | pci_restore_state(pdev); | 261 | |
260 | /* | 262 | /* |
261 | * Suspend/Resume resets the PCI configuration space, so we have to | 263 | * Suspend/Resume resets the PCI configuration space, so we have to |
262 | * re-disable the RETRY_TIMEOUT register (0x41) to keep | 264 | * re-disable the RETRY_TIMEOUT register (0x41) to keep |