We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f18685 commit 1ab2081Copy full SHA for 1ab2081
drivers/platform/x86/dell/dell-pc.c
@@ -281,7 +281,7 @@ static int thermal_init(void)
281
thermal_handler->ops = &dell_pc_platform_profile_ops;
282
283
/* Clean up if failed */
284
- ret = platform_profile_register(thermal_handler, NULL);
+ ret = devm_platform_profile_register(thermal_handler, NULL);
285
if (ret)
286
goto cleanup_thermal_handler;
287
@@ -298,8 +298,6 @@ static int thermal_init(void)
298
299
static void thermal_cleanup(void)
300
{
301
- if (thermal_handler)
302
- platform_profile_remove(thermal_handler);
303
platform_device_unregister(platform_device);
304
}
305
0 commit comments