Commit 56f3a6d
gpio: brcmstb: Use modern PM macros
Use the modern 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: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20251124002105.25429-3-jszhang@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>1 parent 3f19e57 commit 56f3a6d
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
| |||
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | 574 | | |
581 | | - | |
582 | | - | |
| 575 | + | |
| 576 | + | |
583 | 577 | | |
584 | 578 | | |
585 | 579 | | |
| |||
755 | 749 | | |
756 | 750 | | |
757 | 751 | | |
758 | | - | |
| 752 | + | |
759 | 753 | | |
760 | 754 | | |
761 | 755 | | |
| |||
0 commit comments