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

platform/x86: thinkpad_acpi: Use devm_platform_profile_register()

Replace platform_profile_register() with it's device managed version.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
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/20250116002721.75592-15-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Kurt Borja and committed by
Ilpo Järvinen
31658c91 c72ca29e

+1 -7
+1 -7
drivers/platform/x86/thinkpad_acpi.c
··· 10650 10650 10651 10651 dytc_profile.dev = &tpacpi_pdev->dev; 10652 10652 /* Create platform_profile structure and register */ 10653 - err = platform_profile_register(&dytc_profile, NULL); 10653 + err = devm_platform_profile_register(&dytc_profile, NULL); 10654 10654 /* 10655 10655 * If for some reason platform_profiles aren't enabled 10656 10656 * don't quit terminally. ··· 10668 10668 return 0; 10669 10669 } 10670 10670 10671 - static void dytc_profile_exit(void) 10672 - { 10673 - platform_profile_remove(&dytc_profile); 10674 - } 10675 - 10676 10671 static struct ibm_struct dytc_profile_driver_data = { 10677 10672 .name = "dytc-profile", 10678 - .exit = dytc_profile_exit, 10679 10673 }; 10680 10674 10681 10675 /*************************************************************************