ath9k: Fix panic on driver load
authorSujith <Sujith.Manoharan@atheros.com>
Thu, 14 Jan 2010 04:50:57 +0000 (10:20 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Jan 2010 23:16:55 +0000 (18:16 -0500)
commit5e4ea1f0ed256382d6d839fbd7a5c7f1b99b6cb0
tree1954c51af0ae909ed2bf586e8e5bc5e69aaddec3
parent2f1f00fc9b477481ad5c63976385c345851fee3d
ath9k: Fix panic on driver load

The device has to be marked as invalid before
registering the ISR. HW initialization takes place
after the ISR has been registered, and the invalid
flag is eventually cleared in the ->stop() callback.

Reported-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ahb.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/pci.c