Ath5k: suspend/resume fixes
commit3e4242b99ce46fed82aa7f40ad5a1817a2b3bd45
authorJiri Slaby <jirislaby@gmail.com>
Tue, 15 Jul 2008 15:44:21 +0000 (15 17:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:36:29 +0000 (29 16:36 -0400)
tree556a4080d0a73ad90c4016cac8f20d5c61617fa3
parente86600c7b4e9b9b22ba51620613d6159bf5cf504
Ath5k: suspend/resume fixes

- free and re-request irq since it might have changed during suspend
- disable and enable msi
- don't set D0 state of the device, it's already done by the PCI layer
- do restore_state before enable_device, it's safer
- check ath5k_init return value

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c