File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,7 @@ static int pwm_lpss_probe_platform(struct platform_device *pdev)
55
55
DPM_FLAG_SMART_SUSPEND );
56
56
57
57
pm_runtime_set_active (& pdev -> dev );
58
- pm_runtime_enable (& pdev -> dev );
59
-
60
- return 0 ;
61
- }
62
-
63
- static void pwm_lpss_remove_platform (struct platform_device * pdev )
64
- {
65
- pm_runtime_disable (& pdev -> dev );
58
+ return devm_pm_runtime_enable (& pdev -> dev );
66
59
}
67
60
68
61
static const struct acpi_device_id pwm_lpss_acpi_match [] = {
@@ -80,7 +73,6 @@ static struct platform_driver pwm_lpss_driver_platform = {
80
73
.acpi_match_table = pwm_lpss_acpi_match ,
81
74
},
82
75
.probe = pwm_lpss_probe_platform ,
83
- .remove_new = pwm_lpss_remove_platform ,
84
76
};
85
77
module_platform_driver (pwm_lpss_driver_platform );
86
78
You can’t perform that action at this time.
0 commit comments