File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1652,7 +1652,7 @@ static int thermal_profile_setup(struct platform_device *device)
1652
1652
platform_profile_handler .name = "hp-wmi" ;
1653
1653
platform_profile_handler .dev = & device -> dev ;
1654
1654
1655
- err = platform_profile_register (& platform_profile_handler , NULL );
1655
+ err = devm_platform_profile_register (& platform_profile_handler , NULL );
1656
1656
if (err )
1657
1657
return err ;
1658
1658
@@ -1714,9 +1714,6 @@ static void __exit hp_wmi_bios_remove(struct platform_device *device)
1714
1714
rfkill_unregister (wwan_rfkill );
1715
1715
rfkill_destroy (wwan_rfkill );
1716
1716
}
1717
-
1718
- if (platform_profile_support )
1719
- platform_profile_remove (& platform_profile_handler );
1720
1717
}
1721
1718
1722
1719
static int hp_wmi_resume_handler (struct device * device )
You can’t perform that action at this time.
0 commit comments