diff options
author | Harish Patil <harish.patil@qlogic.com> | 2014-04-26 01:43:57 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-28 07:20:53 +0400 |
commit | 1f0f467b670eec101419a2a1235e315e4324ea07 (patch) | |
tree | 12ccb0e57d3b3f11f6e2920aeaeb7dfa3f919254 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |
parent | ddfbac07c0e87e221596a439e8fb3937b95db228 (diff) | |
download | linux-1f0f467b670eec101419a2a1235e315e4324ea07.tar.xz |
qlcnic: Add hwmon interface to export board temperature.
Signed-off-by: Harish Patil <harish.patil@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 73f908a000e9..19878fb393d0 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c @@ -2593,7 +2593,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) qlcnic_alloc_lb_filters_mem(adapter); qlcnic_add_sysfs(adapter); - + qlcnic_register_hwmon_dev(adapter); return 0; err_out_disable_mbx_intr: @@ -2700,6 +2700,8 @@ static void qlcnic_remove(struct pci_dev *pdev) qlcnic_remove_sysfs(adapter); + qlcnic_unregister_hwmon_dev(adapter); + qlcnic_cleanup_pci_map(adapter->ahw); qlcnic_release_firmware(adapter); |