Commit 2bab940
spi: tegra20-slink: Declare runtime suspend and resume functions conditionally
The following build error is seen with CONFIG_PM=n.
drivers/spi/spi-tegra20-slink.c:1188:12: error:
'tegra_slink_runtime_suspend' defined but not used
drivers/spi/spi-tegra20-slink.c:1200:12: error:
'tegra_slink_runtime_resume' defined but not used
Declare the functions only if PM is enabled. While at it, remove the
unnecessary forward declarations.
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent 5457773 commit 2bab940
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| |||
1185 | 1182 | | |
1186 | 1183 | | |
1187 | 1184 | | |
| 1185 | + | |
1188 | 1186 | | |
1189 | 1187 | | |
1190 | 1188 | | |
| |||
1210 | 1208 | | |
1211 | 1209 | | |
1212 | 1210 | | |
| 1211 | + | |
1213 | 1212 | | |
1214 | 1213 | | |
1215 | 1214 | | |
| |||
0 commit comments