diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-12-06 15:55:31 +0800 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-01-27 11:43:24 +0100 |
commit | 66dd8b802c555a9becd81679dc0ee57ede67b142 (patch) | |
tree | 62e3c99e74c835a28c952551d4dda94de2b6f502 /drivers/thermal/intel | |
parent | f64a6583d3f527b297b88441e1c20e6ed45f8f56 (diff) | |
download | linux-66dd8b802c555a9becd81679dc0ee57ede67b142.tar.gz linux-66dd8b802c555a9becd81679dc0ee57ede67b142.tar.bz2 linux-66dd8b802c555a9becd81679dc0ee57ede67b142.zip |
thermal: intel: Fix unmatched pci_release_region
The driver calls pci_request_regions() in probe and uses
pci_release_regions() in probe failure.
However, it calls pci_release_region() in remove, which does
match the other two calls.
Use pci_release_regions() instead to unify them.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191206075531.18637-1-hslester96@gmail.com
Diffstat (limited to 'drivers/thermal/intel')
-rw-r--r-- | drivers/thermal/intel/intel_pch_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index 4f0bb8f502e1..5f7798b8d35f 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -365,7 +365,7 @@ static void intel_pch_thermal_remove(struct pci_dev *pdev) thermal_zone_device_unregister(ptd->tzd); iounmap(ptd->hw_base); pci_set_drvdata(pdev, NULL); - pci_release_region(pdev, 0); + pci_release_regions(pdev); pci_disable_device(pdev); } |