diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-10-30 15:56:50 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-11-11 16:53:05 +0300 |
commit | 07b293c5b01483f3c65372e72e62a2ee559ce1cf (patch) | |
tree | d3a9ab5b0bc231556c28c4ae6a25edebf3779e0d /drivers/clk | |
parent | 5699d160550b1e480c920f8182bd4b73b8c9ae43 (diff) | |
download | linux-07b293c5b01483f3c65372e72e62a2ee559ce1cf.tar.xz |
clk: tegra: Fix build error without CONFIG_PM_SLEEP
If CONFIG_PM_SLEEP is n, build fails:
drivers/clk/tegra/clk-tegra210.c:3426:13: error:
tegra210_clk_suspend undeclared here (not in a function); did you mean tegra_clk_ndspeed?
.suspend = tegra210_clk_suspend,
^~~~~~~~~~~~~~~~~~~~
tegra_clk_ndspeed
drivers/clk/tegra/clk-tegra210.c:3427:12: error:
tegra210_clk_resume undeclared here (not in a function); did you mean tegra210_clk_suspend?
.resume = tegra210_clk_resume,
Use ifdef to guard this.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 27d10d548c04 ("clk: tegra: Add suspend and resume support on Tegra210")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/tegra/clk-tegra210.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c index d038fed3945d..762cd186f714 100644 --- a/drivers/clk/tegra/clk-tegra210.c +++ b/drivers/clk/tegra/clk-tegra210.c @@ -3423,8 +3423,10 @@ static void tegra210_cpu_clock_resume(void) #endif static struct syscore_ops tegra_clk_syscore_ops = { +#ifdef CONFIG_PM_SLEEP .suspend = tegra210_clk_suspend, .resume = tegra210_clk_resume, +#endif }; static struct tegra_cpu_car_ops tegra210_cpu_car_ops = { |