diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-12 20:56:06 +0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-11-20 06:04:16 -0800 |
commit | 3b7f98f237528c496ea0b689bace0e35eec3e060 (patch) | |
tree | 06266c4bb13081d328286f0b9478e3ebd1c96199 /drivers/hwmon | |
parent | b8d27d2ce8dfc207e4b67b929a86f2be76fbc6ef (diff) | |
download | linux-stable-3b7f98f237528c496ea0b689bace0e35eec3e060.tar.gz linux-stable-3b7f98f237528c496ea0b689bace0e35eec3e060.tar.bz2 linux-stable-3b7f98f237528c496ea0b689bace0e35eec3e060.zip |
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')
-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; |