On Sat, Nov 12, 2022 at 08:56:06PM +0800, Yang Yingliang wrote: > 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@xxxxxxxxxx> Applied. Thanks, Guenter > --- > drivers/hwmon/i5500_temp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwmon/i5500_temp.c b/drivers/hwmon/i5500_temp.c > index 05f68e9c9477..23b9f94fe0a9 100644 > --- a/drivers/hwmon/i5500_temp.c > +++ b/drivers/hwmon/i5500_temp.c > @@ -117,7 +117,7 @@ static int i5500_temp_probe(struct pci_dev *pdev, > u32 tstimer; > s8 tsfsc; > > - err = pci_enable_device(pdev); > + err = pcim_enable_device(pdev); > if (err) { > dev_err(&pdev->dev, "Failed to enable device\n"); > return err;