File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,15 @@ static int ucsi_acpi_remove(struct platform_device *pdev)
185
185
return 0 ;
186
186
}
187
187
188
+ static int ucsi_acpi_resume (struct device * dev )
189
+ {
190
+ struct ucsi_acpi * ua = dev_get_drvdata (dev );
191
+
192
+ return ucsi_resume (ua -> ucsi );
193
+ }
194
+
195
+ static DEFINE_SIMPLE_DEV_PM_OPS (ucsi_acpi_pm_ops , NULL, ucsi_acpi_resume ) ;
196
+
188
197
static const struct acpi_device_id ucsi_acpi_match [] = {
189
198
{ "PNP0CA0" , 0 },
190
199
{ },
@@ -194,6 +203,7 @@ MODULE_DEVICE_TABLE(acpi, ucsi_acpi_match);
194
203
static struct platform_driver ucsi_acpi_platform_driver = {
195
204
.driver = {
196
205
.name = "ucsi_acpi" ,
206
+ .pm = pm_ptr (& ucsi_acpi_pm_ops ),
197
207
.acpi_match_table = ACPI_PTR (ucsi_acpi_match ),
198
208
},
199
209
.probe = ucsi_acpi_probe ,
You can’t perform that action at this time.
0 commit comments