Commit a4b4fa5
Input: pxa27x_keypad - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
SIMPLE_DEV_PM_OPS() is deprecated as it requires explicit protection
against unused function warnings. The new combination of pm_sleep_ptr()
and DEFINE_SIMPLE_DEV_PM_OPS() allows the compiler to see the functions,
thus suppressing the warning, but still allowing the unused code to be
removed. Thus also drop the ifdef guards.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20221204180841.2211588-21-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent bb46788 commit a4b4fa5
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | 663 | | |
665 | 664 | | |
666 | 665 | | |
| |||
706 | 705 | | |
707 | 706 | | |
708 | 707 | | |
709 | | - | |
710 | 708 | | |
711 | | - | |
712 | | - | |
| 709 | + | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
830 | 828 | | |
831 | 829 | | |
832 | 830 | | |
833 | | - | |
| 831 | + | |
834 | 832 | | |
835 | 833 | | |
836 | 834 | | |
| |||
0 commit comments