From a97000a3405fe097547ace189fe83d7319fa4de2 Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Fri, 9 Jan 2009 17:49:06 +0200 Subject: [PATCH] OMAP3: PM: Fix linker error without CONFIG_PM option omap3_save_scratchpad_contents() is not available without CONFIG_PM. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clock34xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 389143f0e37..f5ac6d0640a 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c @@ -1354,7 +1354,9 @@ static int omap3_select_table_rate(struct clk *clk, unsigned long rate) curr_vdd2_prcm_set = prcm_vdd; } +#ifdef CONFIG_PM omap3_save_scratchpad_contents(); +#endif return 0; } -- 2.11.4.GIT