Skip to content

Commit 3e08735

Browse files
kaushlenrafaeljw
authored andcommitted
thermal: intel: intel_pch_thermal: Drop explicit driver data clearing
The driver uses devm_kzalloc() for device allocation, making the pci_set_drvdata(pdev, NULL) call in the remove path unnecessary. The driver core clears drvdata automatically during device removal. Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> [ rjw: Subject rewrite ] Link: https://patch.msgid.link/20251215091352.1250531-1-kaushlendra.kumar@intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 169934b commit 3e08735

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/thermal/intel/intel_pch_thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ static void intel_pch_thermal_remove(struct pci_dev *pdev)
269269

270270
thermal_zone_device_unregister(ptd->tzd);
271271
iounmap(ptd->hw_base);
272-
pci_set_drvdata(pdev, NULL);
273272
pci_release_regions(pdev);
274273
pci_disable_device(pdev);
275274
}

0 commit comments

Comments
 (0)