summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.c
diff options
context:
space:
mode:
authorvenu byravarasu <vbyravarasu@nvidia.com>2011-04-26 15:06:27 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-05-03 01:32:08 -0700
commit77347c04a1f0ae286c09e5bbf726f5d5746e51e5 (patch)
tree35e3873b6a47b0fa6fd78ea992e7edb9bbc5c91c /arch/arm/mach-tegra/board-cardhu.c
parent33910d2480854b63b306c11a8ffa2d22aaec3a5a (diff)
arm: tegra: Enabling RTC data based on defconfig
Internal and PMU RTC data are enabled only when respective macros are defined in the Cardhu defconfig file. bug 793949 Change-Id: Iefc074877b263f3620c5ad08026435b3232ae3aa Reviewed-on: http://git-master/r/29637 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c
index 0037e9a7fcd0..01b232a5673c 100644
--- a/arch/arm/mach-tegra/board-cardhu.c
+++ b/arch/arm/mach-tegra/board-cardhu.c
@@ -362,6 +362,7 @@ static void cardhu_i2c_init(void)
platform_device_register(&tegra_i2c_device1);
}
+#if defined(CONFIG_RTC_DRV_TEGRA)
static struct resource tegra_rtc_resources[] = {
[0] = {
.start = TEGRA_RTC_BASE,
@@ -381,6 +382,7 @@ static struct platform_device tegra_rtc_device = {
.resource = tegra_rtc_resources,
.num_resources = ARRAY_SIZE(tegra_rtc_resources),
};
+#endif
static struct platform_device tegra_camera = {
.name = "tegra_camera",
@@ -394,7 +396,9 @@ static struct platform_device *cardhu_devices[] __initdata = {
&tegra_uartd_device,
&tegra_uarte_device,
&pmu_device,
+#if defined(CONFIG_RTC_DRV_TEGRA)
&tegra_rtc_device,
+#endif
&tegra_udc_device,
&tegra_usb_fsg_device,
&androidusb_device,