File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev)
255
255
return devm_watchdog_register_device (dev , wdog );
256
256
}
257
257
258
- static int __maybe_unused imx7ulp_wdt_suspend (struct device * dev )
258
+ static int __maybe_unused imx7ulp_wdt_suspend_noirq (struct device * dev )
259
259
{
260
260
struct imx7ulp_wdt_device * imx7ulp_wdt = dev_get_drvdata (dev );
261
261
@@ -267,7 +267,7 @@ static int __maybe_unused imx7ulp_wdt_suspend(struct device *dev)
267
267
return 0 ;
268
268
}
269
269
270
- static int __maybe_unused imx7ulp_wdt_resume (struct device * dev )
270
+ static int __maybe_unused imx7ulp_wdt_resume_noirq (struct device * dev )
271
271
{
272
272
struct imx7ulp_wdt_device * imx7ulp_wdt = dev_get_drvdata (dev );
273
273
u32 timeout = imx7ulp_wdt -> wdd .timeout * WDOG_CLOCK_RATE ;
@@ -286,8 +286,10 @@ static int __maybe_unused imx7ulp_wdt_resume(struct device *dev)
286
286
return 0 ;
287
287
}
288
288
289
- static SIMPLE_DEV_PM_OPS (imx7ulp_wdt_pm_ops , imx7ulp_wdt_suspend ,
290
- imx7ulp_wdt_resume ) ;
289
+ static const struct dev_pm_ops imx7ulp_wdt_pm_ops = {
290
+ SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (imx7ulp_wdt_suspend_noirq ,
291
+ imx7ulp_wdt_resume_noirq )
292
+ };
291
293
292
294
static const struct of_device_id imx7ulp_wdt_dt_ids [] = {
293
295
{ .compatible = "fsl,imx7ulp-wdt" , },
You can’t perform that action at this time.
0 commit comments