Skip to content

Commit 0d882fa

Browse files
kuu-rtij-intel
authored andcommitted
platform/x86: ideapad-laptop: 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 1ab2081 commit 0d882fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ static int ideapad_dytc_profile_init(struct ideapad_private *priv)
11231123
priv->dytc->pprof.ops = &dytc_profile_ops;
11241124

11251125
/* Create platform_profile structure and register */
1126-
err = platform_profile_register(&priv->dytc->pprof, &priv->dytc);
1126+
err = devm_platform_profile_register(&priv->dytc->pprof, &priv->dytc);
11271127
if (err)
11281128
goto pp_reg_failed;
11291129

@@ -1145,7 +1145,6 @@ static void ideapad_dytc_profile_exit(struct ideapad_private *priv)
11451145
if (!priv->dytc)
11461146
return;
11471147

1148-
platform_profile_remove(&priv->dytc->pprof);
11491148
mutex_destroy(&priv->dytc->mutex);
11501149
kfree(priv->dytc);
11511150

0 commit comments

Comments
 (0)