Commit 65acd0d
serial: sh-sci: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
Convert the Renesas SuperH SCI(F) serial port driver from
SIMPLE_DEV_PM_OPS() to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr().
This lets us drop the __maybe_unused annotations from its suspend and
resume callbacks, and reduces kernel size in case CONFIG_PM or
CONFIG_PM_SLEEP is disabled.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/a5628fe028362ae3f8729021a7864dd39f7869bf.1752086885.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 0666e3f commit 65acd0d
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3754 | 3754 | | |
3755 | 3755 | | |
3756 | 3756 | | |
3757 | | - | |
| 3757 | + | |
3758 | 3758 | | |
3759 | 3759 | | |
3760 | 3760 | | |
| |||
3772 | 3772 | | |
3773 | 3773 | | |
3774 | 3774 | | |
3775 | | - | |
| 3775 | + | |
3776 | 3776 | | |
3777 | 3777 | | |
3778 | 3778 | | |
| |||
3793 | 3793 | | |
3794 | 3794 | | |
3795 | 3795 | | |
3796 | | - | |
| 3796 | + | |
3797 | 3797 | | |
3798 | 3798 | | |
3799 | 3799 | | |
3800 | 3800 | | |
3801 | 3801 | | |
3802 | 3802 | | |
3803 | | - | |
| 3803 | + | |
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
| |||
0 commit comments