aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
-rw-r--r--drivers/net/wireless/rtlwifi/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c
index fbde52d83424..c3dd4cc678ba 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)
1785 1785
1786 rtl_pci_deinit(hw); 1786 rtl_pci_deinit(hw);
1787 rtl_deinit_core(hw); 1787 rtl_deinit_core(hw);
1788 rtlpriv->cfg->ops->deinit_sw_leds(hw); 1788 if (rtlpriv->cfg->ops->deinit_sw_leds)
1789 rtlpriv->cfg->ops->deinit_sw_leds(hw);
1789 _rtl_pci_io_handler_release(hw); 1790 _rtl_pci_io_handler_release(hw);
1790 rtlpriv->cfg->ops->deinit_sw_vars(hw); 1791 rtlpriv->cfg->ops->deinit_sw_vars(hw);
1791 1792