]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: asus-wmi: Use devm_platform_profile_register()
authorKurt Borja <kuurtb@gmail.com>
Thu, 16 Jan 2025 00:27:11 +0000 (19:27 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 16 Jan 2025 15:26:36 +0000 (17:26 +0200)
commit8f1868526702c1a544595075525b5bf52653607d
tree4168e7ad7d9c735d5fe67729f32de169b2734bc4
parent3e6d0bf3b9bf2232ba604c1c61b106beaf3cae3b
platform/x86: asus-wmi: Use devm_platform_profile_register()

Replace platform_profile_register() with it's device managed version.
Also replace pr_err with dev_err in case of error and make the error
message more user-friendly.

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-10-kuurtb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c