Skip to content

Commit 66dd8b8

Browse files
WillLesterdlezcano
authored andcommitted
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 <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f64a658 commit 66dd8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/intel/intel_pch_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static void intel_pch_thermal_remove(struct pci_dev *pdev)
365365
thermal_zone_device_unregister(ptd->tzd);
366366
iounmap(ptd->hw_base);
367367
pci_set_drvdata(pdev, NULL);
368-
pci_release_region(pdev, 0);
368+
pci_release_regions(pdev);
369369
pci_disable_device(pdev);
370370
}
371371

0 commit comments

Comments
 (0)