File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ static void irqc_remove(struct platform_device *pdev)
227
227
pm_runtime_disable (& pdev -> dev );
228
228
}
229
229
230
- static int __maybe_unused irqc_suspend (struct device * dev )
230
+ static int irqc_suspend (struct device * dev )
231
231
{
232
232
struct irqc_priv * p = dev_get_drvdata (dev );
233
233
@@ -237,7 +237,7 @@ static int __maybe_unused irqc_suspend(struct device *dev)
237
237
return 0 ;
238
238
}
239
239
240
- static SIMPLE_DEV_PM_OPS (irqc_pm_ops , irqc_suspend , NULL) ;
240
+ static DEFINE_SIMPLE_DEV_PM_OPS (irqc_pm_ops , irqc_suspend , NULL) ;
241
241
242
242
static const struct of_device_id irqc_dt_ids [] = {
243
243
{ .compatible = "renesas,irqc" , },
@@ -251,7 +251,7 @@ static struct platform_driver irqc_device_driver = {
251
251
.driver = {
252
252
.name = "renesas_irqc" ,
253
253
.of_match_table = irqc_dt_ids ,
254
- .pm = & irqc_pm_ops ,
254
+ .pm = pm_sleep_ptr ( & irqc_pm_ops ) ,
255
255
}
256
256
};
257
257
You can’t perform that action at this time.
0 commit comments