Skip to content

Commit 7dc9b95

Browse files
arndbbroonie
authored andcommitted
spi: tegra20: fix build with CONFIG_PM_SLEEP=n
There is another one of these warnings: drivers/spi/spi-tegra20-slink.c:1197:12: error: 'tegra_slink_runtime_resume' defined but not used [-Werror=unused-function] 1197 | static int tegra_slink_runtime_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Give it the same treatment as the other functions in this file. Fixes: efafec2 ("spi: Fix tegra20 build with CONFIG_PM=n") Fixes: 2bab940 ("spi: tegra20-slink: Declare runtime suspend and resume functions conditionally") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 923f508 commit 7dc9b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-tegra20-slink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ static int __maybe_unused tegra_slink_runtime_suspend(struct device *dev)
11941194
return 0;
11951195
}
11961196

1197-
static int tegra_slink_runtime_resume(struct device *dev)
1197+
static __maybe_unused int tegra_slink_runtime_resume(struct device *dev)
11981198
{
11991199
struct spi_master *master = dev_get_drvdata(dev);
12001200
struct tegra_slink_data *tspi = spi_master_get_devdata(master);

0 commit comments

Comments
 (0)