Skip to content

Commit db0c8eb

Browse files
kuu-rtij-intel
authored andcommitted
platform/x86: hp-wmi: 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-13-kuurtb@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent 0d882fa commit db0c8eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/platform/x86/hp/hp-wmi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ static int thermal_profile_setup(struct platform_device *device)
16521652
platform_profile_handler.name = "hp-wmi";
16531653
platform_profile_handler.dev = &device->dev;
16541654

1655-
err = platform_profile_register(&platform_profile_handler, NULL);
1655+
err = devm_platform_profile_register(&platform_profile_handler, NULL);
16561656
if (err)
16571657
return err;
16581658

@@ -1714,9 +1714,6 @@ static void __exit hp_wmi_bios_remove(struct platform_device *device)
17141714
rfkill_unregister(wwan_rfkill);
17151715
rfkill_destroy(wwan_rfkill);
17161716
}
1717-
1718-
if (platform_profile_support)
1719-
platform_profile_remove(&platform_profile_handler);
17201717
}
17211718

17221719
static int hp_wmi_resume_handler(struct device *device)

0 commit comments

Comments
 (0)