Commit b841c1d
pinctrl: amd: Fix use of undeclared identifier 'pinctrl_amd_s2idle_dev_ops'
`pinctrl_amd_s2idle_dev_ops` is hidden under both `CONFIG_ACPI` and
`CONFIG_PM_SLEEP` so the functions that use it need the same scope.
Adjust checks to look for both, and while updating make it CONFIG_SUSPEND
instead as that's what the ACPI header uses.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Mario Limonciello <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Add missing #ifdef/#endif block ]
Signed-off-by: Rafael J. Wysocki <[email protected]>1 parent 179db19 commit b841c1d
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
892 | 894 | | |
893 | 895 | | |
894 | 896 | | |
895 | | - | |
| 897 | + | |
896 | 898 | | |
897 | 899 | | |
898 | 900 | | |
| |||
969 | 971 | | |
970 | 972 | | |
971 | 973 | | |
| 974 | + | |
972 | 975 | | |
| 976 | + | |
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
| |||
1143 | 1147 | | |
1144 | 1148 | | |
1145 | 1149 | | |
1146 | | - | |
| 1150 | + | |
1147 | 1151 | | |
1148 | 1152 | | |
1149 | 1153 | | |
| |||
1209 | 1213 | | |
1210 | 1214 | | |
1211 | 1215 | | |
1212 | | - | |
| 1216 | + | |
1213 | 1217 | | |
1214 | 1218 | | |
1215 | 1219 | | |
| |||
1230 | 1234 | | |
1231 | 1235 | | |
1232 | 1236 | | |
1233 | | - | |
| 1237 | + | |
1234 | 1238 | | |
1235 | 1239 | | |
1236 | 1240 | | |
| |||
1249 | 1253 | | |
1250 | 1254 | | |
1251 | 1255 | | |
1252 | | - | |
| 1256 | + | |
1253 | 1257 | | |
1254 | 1258 | | |
1255 | 1259 | | |
| |||
0 commit comments