Commit 3b7f98f2 authored by Yang Yingliang's avatar Yang Yingliang Committed by Guenter Roeck

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: ada07281 ("hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsets")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221112125606.3751430-1-yangyingliang@huawei.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b8d27d2c
...@@ -117,7 +117,7 @@ static int i5500_temp_probe(struct pci_dev *pdev, ...@@ -117,7 +117,7 @@ static int i5500_temp_probe(struct pci_dev *pdev,
u32 tstimer; u32 tstimer;
s8 tsfsc; s8 tsfsc;
err = pci_enable_device(pdev); err = pcim_enable_device(pdev);
if (err) { if (err) {
dev_err(&pdev->dev, "Failed to enable device\n"); dev_err(&pdev->dev, "Failed to enable device\n");
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment