diff options
author | Mark Brown <broonie@kernel.org> | 2021-09-20 16:56:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-21 16:23:35 +0200 |
commit | ffb1e76f4f32d2b8ea4189df0484980370476395 (patch) | |
tree | c62376eab558809973dc5b71806df07c388bfc1a /drivers/spi/spi-tegra20-slink.c | |
parent | spi: tegra20-slink: Declare runtime suspend and resume functions conditionally (diff) | |
parent | Linux 5.15-rc2 (diff) | |
download | linux-ffb1e76f4f32d2b8ea4189df0484980370476395.tar.xz linux-ffb1e76f4f32d2b8ea4189df0484980370476395.zip |
Merge tag 'v5.15-rc2' into spi-5.15
Linux 5.15-rc2
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 8ce840c7ecc8..3226c4e1c7c0 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1182,8 +1182,7 @@ static int tegra_slink_resume(struct device *dev) } #endif -#ifdef CONFIG_PM -static int tegra_slink_runtime_suspend(struct device *dev) +static int __maybe_unused tegra_slink_runtime_suspend(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct tegra_slink_data *tspi = spi_master_get_devdata(master); @@ -1195,7 +1194,7 @@ static int tegra_slink_runtime_suspend(struct device *dev) return 0; } -static int tegra_slink_runtime_resume(struct device *dev) +static int __maybe_unused tegra_slink_runtime_resume(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct tegra_slink_data *tspi = spi_master_get_devdata(master); @@ -1208,7 +1207,6 @@ static int tegra_slink_runtime_resume(struct device *dev) } return 0; } -#endif /* CONFIG_PM */ static const struct dev_pm_ops slink_pm_ops = { SET_RUNTIME_PM_OPS(tegra_slink_runtime_suspend, |