]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: intel: intel_pch_thermal: Drop explicit driver data clearing
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Mon, 15 Dec 2025 09:13:52 +0000 (14:43 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Jan 2026 20:08:11 +0000 (21:08 +0100)
commit3e0873527c599b5acae9eee1543806752ed254f7
tree9b8465b59f186964ec47e16321871632914a8d0f
parent169934ba2b73f07df59c3371acdc26f45eb99c5e
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>
drivers/thermal/intel/intel_pch_thermal.c