projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeb31b8
)
hwmon: (i5500_temp) fix missing pci_disable_device()
author
Yang Yingliang
<yangyingliang@huawei.com>
Sat, 12 Nov 2022 12:56:06 +0000
(20:56 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:28:39 +0000
(11:28 +0100)
[ Upstream commit
3b7f98f237528c496ea0b689bace0e35eec3e060
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/i5500_temp.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/i5500_temp.c
b/drivers/hwmon/i5500_temp.c
index 360f5aee139476fb11fc47053fde7e0eb1f6a655..d4be03f43fb45be94cc35104ad2613df6002fe41 100644
(file)
--- a/
drivers/hwmon/i5500_temp.c
+++ b/
drivers/hwmon/i5500_temp.c
@@
-108,7
+108,7
@@
static int i5500_temp_probe(struct pci_dev *pdev,
u32 tstimer;
s8 tsfsc;
- err = pci_enable_device(pdev);
+ err = pci
m
_enable_device(pdev);
if (err) {
dev_err(&pdev->dev, "Failed to enable device\n");
return err;