]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (i5500_temp) fix missing pci_disable_device()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 12 Nov 2022 12:56:06 +0000 (20:56 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 20 Nov 2022 14:04:16 +0000 (06:04 -0800)
commit915864543b6152c25400d794a2cee53d156f5249
tree06266c4bb13081d328286f0b9478e3ebd1c96199
parentec9015d525ca97e45dea5a72b3323fdf2aae7011
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: b9e13bb347a1 ("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>
drivers/hwmon/i5500_temp.c