Commit 282c952a authored by Yang Yingliang's avatar Yang Yingliang Committed by sanglipeng
Browse files

hwmon: (i5500_temp) fix missing pci_disable_device()

stable inclusion
from stable-v5.10.158
commit 7649bba2633dd1dafb0dc8cd37a46dc86ecee4a2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7649bba2633dd1dafb0dc8cd37a46dc86ecee4a2



--------------------------------

[ Upstream commit 3b7f98f2 ]

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.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 02a2f833
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment