Commit 0d882fae authored by Kurt Borja's avatar Kurt Borja Committed by Ilpo Järvinen
Browse files

platform/x86: ideapad-laptop: Use devm_platform_profile_register()

parent 1ab20816
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1123,7 +1123,7 @@ static int ideapad_dytc_profile_init(struct ideapad_private *priv)
	priv->dytc->pprof.ops = &dytc_profile_ops;

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

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

	platform_profile_remove(&priv->dytc->pprof);
	mutex_destroy(&priv->dytc->mutex);
	kfree(priv->dytc);