Message ID | 1366066385-18246-1-git-send-email-swarren@wwwdotorg.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Apr 15, 2013 at 04:53:05PM -0600, Stephen Warren wrote: > From: Joseph Lo <josephl@nvidia.com> > > This fixes the building error when the PM_SLEEP is disabled. The fucntional > defintion of "tegra_pm_validate_suspend_mode" without "static inline" > would become a multiple definition error. > > Reported-by: Rhyland Klein <rklein@nvidia.com> > Signed-off-by: Joseph Lo <josephl@nvidia.com> > Signed-off-by: Stephen Warren <swarren@nvidia.com> > --- > Arnd, Olof, can you please apply this to arm-soc too. Applied. -Olof
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index 9d2d038..778a4aa 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -39,7 +39,7 @@ enum tegra_suspend_mode tegra_pm_validate_suspend_mode( enum tegra_suspend_mode mode); void tegra_init_suspend(void); #else -enum tegra_suspend_mode tegra_pm_validate_suspend_mode( +static inline enum tegra_suspend_mode tegra_pm_validate_suspend_mode( enum tegra_suspend_mode mode) { return TEGRA_SUSPEND_NONE;