ath9k_htc: Fix warning on device removal
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Mon, 20 Dec 2010 02:32:42 +0000 (08:02 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:25 +0000 (15:43 -0500)
commit97dcec5715a381362c88d1542e52c63147764d3c
treeeddbe362c36a42441d9ebd8794be5cb6975fbfed
parent3cfeb0c33f5cbcc6dde371392877ef3101b8f805
ath9k_htc: Fix warning on device removal

The commit "ath9k_hw: warn if we cannot change the power to the chip"
introduced a new warning to indicate chip powerup failures, but this
is not required for devices that have been removed. Handle USB device
removal properly by checking for unplugged status.

For PCI devices, this warning will still be seen when the card is pulled
out, not sure how to check for card removal.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/wmi.c