diff options
author | Guenter Roeck <linux@roeck-us.net> | 2021-09-07 07:53:58 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-09 16:16:27 +0300 |
commit | 2bab94090b01bc593d8bc25f68df41f198721173 (patch) | |
tree | 92612c0478278af66d2e5eaec5e94a0e01b736fb /drivers/spi/spi-ti-qspi.c | |
parent | 5457773ef99f25fcc4b238ac76b68e28273250f4 (diff) | |
download | linux-2bab94090b01bc593d8bc25f68df41f198721173.tar.xz |
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 <linux@roeck-us.net>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210907045358.2138282-1-linux@roeck-us.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-ti-qspi.c')
0 files changed, 0 insertions, 0 deletions