Commit 995765e
Input: tegra-kbc - 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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>1 parent bf7aa12 commit 995765e
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
717 | 716 | | |
718 | 717 | | |
719 | 718 | | |
| |||
802 | 801 | | |
803 | 802 | | |
804 | 803 | | |
805 | | - | |
806 | 804 | | |
807 | | - | |
| 805 | + | |
| 806 | + | |
808 | 807 | | |
809 | 808 | | |
810 | 809 | | |
811 | 810 | | |
812 | 811 | | |
813 | | - | |
| 812 | + | |
814 | 813 | | |
815 | 814 | | |
816 | 815 | | |
| |||
0 commit comments