thermal: intel: Fix unmatched pci_release_region
authorChuhong Yuan <hslester96@gmail.com>
Fri, 6 Dec 2019 07:55:31 +0000 (15:55 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 10:43:24 +0000 (11:43 +0100)
commit66dd8b802c555a9becd81679dc0ee57ede67b142
tree62e3c99e74c835a28c952551d4dda94de2b6f502
parentf64a6583d3f527b297b88441e1c20e6ed45f8f56
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
drivers/thermal/intel/intel_pch_thermal.c