diff options
author | Chaoming Li <chaoming_li@realsil.com.cn> | 2011-04-10 18:30:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:59:34 -0400 |
commit | 228bdfca9a09c1263c24509b4bc23a67be168e1a (patch) | |
tree | 4e7d1a0e12213f75213b19dbb5956548c024acf6 /drivers/net/wireless/rtlwifi/pci.c | |
parent | f0bce44f5f2eb37dba58aa992d0c58da92ded201 (diff) | |
download | blackbird-op-linux-228bdfca9a09c1263c24509b4bc23a67be168e1a.tar.gz blackbird-op-linux-228bdfca9a09c1263c24509b4bc23a67be168e1a.zip |
rtlwifi: rtl8192ce: Fix LED initialization
Driver rtl8192ce does not initialize the LED correctly.
Signed-off-by: Chaoming Li <chaoming_li@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index efded435d596..59a150ce3064 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -1785,7 +1785,8 @@ void rtl_pci_disconnect(struct pci_dev *pdev) rtl_pci_deinit(hw); rtl_deinit_core(hw); - rtlpriv->cfg->ops->deinit_sw_leds(hw); + if (rtlpriv->cfg->ops->deinit_sw_leds) + rtlpriv->cfg->ops->deinit_sw_leds(hw); _rtl_pci_io_handler_release(hw); rtlpriv->cfg->ops->deinit_sw_vars(hw); |