Commit 8b3c366
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>1 parent aeb3ef5 commit 8b3c366
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
560 | | - | |
561 | 559 | | |
562 | | - | |
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
| |||
575 | 572 | | |
576 | 573 | | |
577 | 574 | | |
578 | | - | |
579 | 575 | | |
580 | 576 | | |
581 | | - | |
582 | | - | |
| 577 | + | |
| 578 | + | |
583 | 579 | | |
584 | 580 | | |
585 | 581 | | |
| |||
595 | 591 | | |
596 | 592 | | |
597 | 593 | | |
598 | | - | |
| 594 | + | |
599 | 595 | | |
600 | 596 | | |
601 | 597 | | |
| |||
0 commit comments