diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -30,6 +30,7 @@ #ifdef SUPPORT_MFG #include "mfg.h" #endif +#include "hwmon.h" #ifdef CONFIG_DEBUG_FS #include "debugfs.h" #endif @@ -822,6 +823,8 @@ static int mwl_probe(struct pci_dev *pdev, const struct pci_device_id *id) (priv->antenna_tx == ANTENNA_TX_4_AUTO) ? "4" : "2", (priv->antenna_rx == ANTENNA_RX_4_AUTO) ? "4" : "2"); + mwl_hwmon_register(hw); + #ifdef CONFIG_DEBUG_FS mwl_debugfs_init(hw); #endif @@ -853,6 +856,8 @@ static void mwl_remove(struct pci_dev *pdev) if (!hw) return; + mwl_hwmon_unregister(hw); + priv = hw->priv; mwl_wl_deinit(priv); |