]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit965c59afde36f58805e5821554994cdbd9f93207
treeeddbe362c36a42441d9ebd8794be5cb6975fbfed
parent200e7e1deb730758820b36203b6280dd1a724307
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