]> git.baikalelectronics.ru Git - kernel.git/commit
spi: tegra20-slink: Declare runtime suspend and resume functions conditionally
authorGuenter Roeck <linux@roeck-us.net>
Tue, 7 Sep 2021 04:53:58 +0000 (21:53 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 13 Sep 2021 00:59:14 +0000 (01:59 +0100)
commit4fec2b8cb4d916fb0d4c7cb3ce16fe0ad411973c
treea91ffe130a0be4c12a04f4fc34e37acd25b85b80
parentb88923efbdc10d0ced01beeabca924ab0dc7d988
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>
Link: https://lore.kernel.org/r/20210907045358.2138282-1-linux@roeck-us.net
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c