Skip to content

Commit

Permalink
watchdog: iTCO_wdt: use pm_ptr()
Browse files Browse the repository at this point in the history
Reduce a little bit of boilerplate by using pm_ptr().

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
  • Loading branch information
metux authored and intel-lab-lkp committed Jun 16, 2021
1 parent dd86005 commit 670a790
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/watchdog/iTCO_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,16 +636,13 @@ static const struct dev_pm_ops iTCO_wdt_pm = {
.resume_noirq = iTCO_wdt_resume_noirq,
};

#define ITCO_WDT_PM_OPS (&iTCO_wdt_pm)
#else
#define ITCO_WDT_PM_OPS NULL
#endif /* CONFIG_PM_SLEEP */

static struct platform_driver iTCO_wdt_driver = {
.probe = iTCO_wdt_probe,
.driver = {
.name = DRV_NAME,
.pm = ITCO_WDT_PM_OPS,
.pm = pm_ptr(&iTCO_wdt_pm),
},
};

Expand Down

0 comments on commit 670a790

Please sign in to comment.