]> www.infradead.org Git - linux.git/commit
platform/x86: thinkpad_acpi: Move HWMON initialization to tpacpi_hwmon_pdriver's...
authorKurt Borja <kuurtb@gmail.com>
Sat, 15 Feb 2025 00:03:02 +0000 (19:03 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 24 Feb 2025 11:49:20 +0000 (13:49 +0200)
commit43fc63a1e8f6db7148f9cfcddda539c3437bc6c2
tree3bc07912714ca160b378cdff12d0ae59b6fae019
parent38b9ab80db31cf993a8f3ab2baf772083b62ca6f
platform/x86: thinkpad_acpi: Move HWMON initialization to tpacpi_hwmon_pdriver's probe

Let the driver core manage the lifetime of the HWMON device, by
registering it inside tpacpi_hwmon_pdriver's probe and using
devm_hwmon_device_register_with_groups().

Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20250215000302.19753-3-kuurtb@gmail.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c