[OMAPZOOM][PATCH] OMAP3: PM: SRAM: Fixes build without TI PM enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From cdc02ee36ce8da385b857575be3ad369a063bf8c Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@xxxxxx>
Date: Tue, 6 Jan 2009 18:53:13 -0600
Subject: [PATCH] OMAP3: PM: SRAM: Fixes build without TI PM enabled

This fixes build without TI PM on omapzoom tree, as symbols
sram_reprogram_gpmc and sram_reprogram_gpmc_sz doesn't exist in
that case.

Signed-off-by: Sergio Aguirre <saaguirre@xxxxxx>
---
 arch/arm/plat-omap/sram.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index d2a691c..f97e718 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -383,9 +383,10 @@ int __init omap3_sram_init(void)
 	_omap3_sram_configure_core_dpll =
 		omap_sram_push(omap3_sram_configure_core_dpll,
 			       omap3_sram_configure_core_dpll_sz);
+#if defined(CONFIG_OMAP3_PM)
 	_omap3_sram_reprogram_gpmc = omap_sram_push(sram_reprogram_gpmc,
 			sram_reprogram_gpmc_sz);
-
+#endif
 	return 0;
 }
 #else
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux