Skip to content

Commit 23c6edd

Browse files
committed
Merge tag 'tegra-for-5.2-bus-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/late
bus/tegra: Fixes for v5.2-rc1 This contains a single fix for a potential PM-related build issue. * tag 'tegra-for-5.2-bus-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: amba: tegra-ahb: Mark PM functions as __maybe_unused Signed-off-by: Olof Johansson <[email protected]>
2 parents 982c736 + 6d61656 commit 23c6edd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/amba/tegra-ahb.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn)
170170
EXPORT_SYMBOL(tegra_ahb_enable_smmu);
171171
#endif
172172

173-
#ifdef CONFIG_PM
174-
static int tegra_ahb_suspend(struct device *dev)
173+
static int __maybe_unused tegra_ahb_suspend(struct device *dev)
175174
{
176175
int i;
177176
struct tegra_ahb *ahb = dev_get_drvdata(dev);
@@ -181,7 +180,7 @@ static int tegra_ahb_suspend(struct device *dev)
181180
return 0;
182181
}
183182

184-
static int tegra_ahb_resume(struct device *dev)
183+
static int __maybe_unused tegra_ahb_resume(struct device *dev)
185184
{
186185
int i;
187186
struct tegra_ahb *ahb = dev_get_drvdata(dev);
@@ -190,7 +189,6 @@ static int tegra_ahb_resume(struct device *dev)
190189
gizmo_writel(ahb, ahb->ctx[i], tegra_ahb_gizmo[i]);
191190
return 0;
192191
}
193-
#endif
194192

195193
static UNIVERSAL_DEV_PM_OPS(tegra_ahb_pm,
196194
tegra_ahb_suspend,

0 commit comments

Comments
 (0)