diff options
| -rw-r--r-- | drivers/amba/tegra-ahb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index b0b688c481e8..3751d811be39 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c | |||
| @@ -170,8 +170,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn) | |||
| 170 | EXPORT_SYMBOL(tegra_ahb_enable_smmu); | 170 | EXPORT_SYMBOL(tegra_ahb_enable_smmu); |
| 171 | #endif | 171 | #endif |
| 172 | 172 | ||
| 173 | #ifdef CONFIG_PM | 173 | static int __maybe_unused tegra_ahb_suspend(struct device *dev) |
| 174 | static int tegra_ahb_suspend(struct device *dev) | ||
| 175 | { | 174 | { |
| 176 | int i; | 175 | int i; |
| 177 | struct tegra_ahb *ahb = dev_get_drvdata(dev); | 176 | struct tegra_ahb *ahb = dev_get_drvdata(dev); |
| @@ -181,7 +180,7 @@ static int tegra_ahb_suspend(struct device *dev) | |||
| 181 | return 0; | 180 | return 0; |
| 182 | } | 181 | } |
| 183 | 182 | ||
| 184 | static int tegra_ahb_resume(struct device *dev) | 183 | static int __maybe_unused tegra_ahb_resume(struct device *dev) |
| 185 | { | 184 | { |
| 186 | int i; | 185 | int i; |
| 187 | struct tegra_ahb *ahb = dev_get_drvdata(dev); | 186 | struct tegra_ahb *ahb = dev_get_drvdata(dev); |
| @@ -190,7 +189,6 @@ static int tegra_ahb_resume(struct device *dev) | |||
| 190 | gizmo_writel(ahb, ahb->ctx[i], tegra_ahb_gizmo[i]); | 189 | gizmo_writel(ahb, ahb->ctx[i], tegra_ahb_gizmo[i]); |
| 191 | return 0; | 190 | return 0; |
| 192 | } | 191 | } |
| 193 | #endif | ||
| 194 | 192 | ||
| 195 | static UNIVERSAL_DEV_PM_OPS(tegra_ahb_pm, | 193 | static UNIVERSAL_DEV_PM_OPS(tegra_ahb_pm, |
| 196 | tegra_ahb_suspend, | 194 | tegra_ahb_suspend, |
