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 <srinivas.pandruvada@linux.intel.com> Link: https://patch.msgid.link/20240619172109.497639-2-srinivas.pandruvada@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5ba2062 commit a264cee

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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)