Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kaushlendra Kumar and committed by
Rafael J. Wysocki
3e087352 169934ba

-1
-1
drivers/thermal/intel/intel_pch_thermal.c
··· 269 269 270 270 thermal_zone_device_unregister(ptd->tzd); 271 271 iounmap(ptd->hw_base); 272 - pci_set_drvdata(pdev, NULL); 273 272 pci_release_regions(pdev); 274 273 pci_disable_device(pdev); 275 274 }