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 <[email protected]> Signed-off-by: Kurt Borja <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Tested-by: Mark Pearson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 0d882fa commit db0c8eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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)