Skip to content

Commit 31658c9

Browse files
kuu-rtij-intel
authored andcommitted
platform/x86: thinkpad_acpi: 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 c72ca29 commit 31658c9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/platform/x86/thinkpad_acpi.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10650,7 +10650,7 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm)
1065010650

1065110651
dytc_profile.dev = &tpacpi_pdev->dev;
1065210652
/* Create platform_profile structure and register */
10653-
err = platform_profile_register(&dytc_profile, NULL);
10653+
err = devm_platform_profile_register(&dytc_profile, NULL);
1065410654
/*
1065510655
* If for some reason platform_profiles aren't enabled
1065610656
* don't quit terminally.
@@ -10668,14 +10668,8 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm)
1066810668
return 0;
1066910669
}
1067010670

10671-
static void dytc_profile_exit(void)
10672-
{
10673-
platform_profile_remove(&dytc_profile);
10674-
}
10675-
1067610671
static struct ibm_struct dytc_profile_driver_data = {
1067710672
.name = "dytc-profile",
10678-
.exit = dytc_profile_exit,
1067910673
};
1068010674

1068110675
/*************************************************************************

0 commit comments

Comments
 (0)