Skip to content

Commit a264cee

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: intel: int340x: Remove unnecessary calls to free irq
Remove calls to devm_free_irq() and pci_free_irq_vectors(). They will be called on driver release anyway. Signed-off-by: Srinivas Pandruvada <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5ba2062 commit a264cee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,6 @@ static void proc_thermal_pci_remove(struct pci_dev *pdev)
352352
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_THRES_0, 0);
353353
proc_thermal_mmio_write(pci_info, PROC_THERMAL_MMIO_INT_ENABLE_0, 0);
354354

355-
devm_free_irq(&pdev->dev, pdev->irq, pci_info);
356-
pci_free_irq_vectors(pdev);
357-
358355
thermal_zone_device_unregister(pci_info->tzone);
359356
proc_thermal_mmio_remove(pdev, pci_info->proc_priv);
360357
if (!pci_info->no_legacy)

0 commit comments

Comments
 (0)