watchdog: starfive: Remove #ifdef guards for PM related functions
authorPaul Cercueil <paul@crapouillou.net>
Thu, 6 Jul 2023 08:29:28 +0000 (10:29 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 19 Aug 2023 15:14:37 +0000 (17:14 +0200)
commit8b3c3662186046c440ffbb7f5efc5595b1696e9d
treeb65cdabb22d11010be9ab935a9ff90c9cdc2a4a7
parentaeb3ef51b602dce456c850414aa1becd0e7aeab1
watchdog: starfive: Remove #ifdef guards for PM related functions

Use the new PM macros for the suspend and resume functions to be
automatically dropped by the compiler when CONFIG_PM or
CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards.

This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230706082928.10869-1-paul@crapouillou.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/starfive-wdt.c