diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-12 15:56:06 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-11-20 17:04:16 +0300 |
commit | 3b7f98f237528c496ea0b689bace0e35eec3e060 (patch) | |
tree | 06266c4bb13081d328286f0b9478e3ebd1c96199 /drivers/hwmon/i5500_temp.c | |
parent | b8d27d2ce8dfc207e4b67b929a86f2be76fbc6ef (diff) | |
download | linux-3b7f98f237528c496ea0b689bace0e35eec3e060.tar.xz |
hwmon: (i5500_temp) fix missing pci_disable_device()
pci_disable_device() need be called while module exiting, switch to use
pcim_enable(), pci_disable_device() will be called in pcim_release().
Fixes: ada072816be1 ("hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsets")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221112125606.3751430-1-yangyingliang@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/i5500_temp.c')
-rw-r--r-- | drivers/hwmon/i5500_temp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/i5500_temp.c b/drivers/hwmon/i5500_temp.c index 05f68e9c9477..23b9f94fe0a9 100644 --- a/drivers/hwmon/i5500_temp.c +++ b/drivers/hwmon/i5500_temp.c @@ -117,7 +117,7 @@ static int i5500_temp_probe(struct pci_dev *pdev, u32 tstimer; s8 tsfsc; - err = pci_enable_device(pdev); + err = pcim_enable_device(pdev); if (err) { dev_err(&pdev->dev, "Failed to enable device\n"); return err; |