Skip to content

Commit 3b7f98f

Browse files
Yang Yinglianggroeck
authored andcommitted
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: ada0728 ("hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsets") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent b8d27d2 commit 3b7f98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/i5500_temp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static int i5500_temp_probe(struct pci_dev *pdev,
117117
u32 tstimer;
118118
s8 tsfsc;
119119

120-
err = pci_enable_device(pdev);
120+
err = pcim_enable_device(pdev);
121121
if (err) {
122122
dev_err(&pdev->dev, "Failed to enable device\n");
123123
return err;

0 commit comments

Comments
 (0)