Commit 1ab20816 authored by Kurt Borja's avatar Kurt Borja Committed by Ilpo Järvinen
Browse files

platform/x86: dell-pc: Use devm_platform_profile_register()

parent 8f186852
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ static int thermal_init(void)
	thermal_handler->ops = &dell_pc_platform_profile_ops;

	/* Clean up if failed */
	ret = platform_profile_register(thermal_handler, NULL);
	ret = devm_platform_profile_register(thermal_handler, NULL);
	if (ret)
		goto cleanup_thermal_handler;

@@ -298,8 +298,6 @@ static int thermal_init(void)

static void thermal_cleanup(void)
{
	if (thermal_handler)
		platform_profile_remove(thermal_handler);
	platform_device_unregister(platform_device);
}