aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/ts78xx-setup.c
diff options
context:
space:
mode:
authorAlexander Clouter <alex@digriz.org.uk>2009-02-23 17:38:50 -0500
committerNicolas Pitre <nico@cam.org>2009-02-25 00:00:14 -0500
commit673492a800b14a9aac5d9d1af120334b9578a23c (patch)
tree69f07f30a3ade8fe1abe83e63e0079cae8b3ce03 /arch/arm/mach-orion5x/ts78xx-setup.c
parentf5273fa3102fa4c25819f3034b8834c37d3e62a3 (diff)
[ARM] orion5x: ts78xx amend RTC registering to not depend on ifdef's
amend RTC registering to not depend on ifdef's Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Nicolas Pitre <nico@cam.org>
Diffstat (limited to 'arch/arm/mach-orion5x/ts78xx-setup.c')
-rw-r--r--arch/arm/mach-orion5x/ts78xx-setup.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
index 778b11860ee6..640b44db5a3f 100644
--- a/arch/arm/mach-orion5x/ts78xx-setup.c
+++ b/arch/arm/mach-orion5x/ts78xx-setup.c
@@ -75,7 +75,6 @@ static struct mv_sata_platform_data ts78xx_sata_data = {
75/***************************************************************************** 75/*****************************************************************************
76 * RTC M48T86 - nicked^Wborrowed from arch/arm/mach-ep93xx/ts72xx.c 76 * RTC M48T86 - nicked^Wborrowed from arch/arm/mach-ep93xx/ts72xx.c
77 ****************************************************************************/ 77 ****************************************************************************/
78#ifdef CONFIG_RTC_DRV_M48T86
79#define TS_RTC_CTRL (TS78XX_FPGA_REGS_VIRT_BASE | 0x808) 78#define TS_RTC_CTRL (TS78XX_FPGA_REGS_VIRT_BASE | 0x808)
80#define TS_RTC_DATA (TS78XX_FPGA_REGS_VIRT_BASE | 0x80c) 79#define TS_RTC_DATA (TS78XX_FPGA_REGS_VIRT_BASE | 0x80c)
81 80
@@ -150,16 +149,6 @@ static void ts78xx_ts_rtc_unload(void)
150{ 149{
151 platform_device_del(&ts78xx_ts_rtc_device); 150 platform_device_del(&ts78xx_ts_rtc_device);
152} 151}
153#else
154static int ts78xx_ts_rtc_load(void)
155{
156 return -ENODEV;
157}
158
159static void ts78xx_ts_rtc_unload(void)
160{
161}
162#endif
163 152
164/***************************************************************************** 153/*****************************************************************************
165 * FPGA 'hotplug' support code 154 * FPGA 'hotplug' support code
@@ -188,8 +177,7 @@ static int ts78xx_fpga_load_devices(void)
188 if (ts78xx_fpga.supports.ts_rtc.present == 1) { 177 if (ts78xx_fpga.supports.ts_rtc.present == 1) {
189 tmp = ts78xx_ts_rtc_load(); 178 tmp = ts78xx_ts_rtc_load();
190 if (tmp) { 179 if (tmp) {
191 printk(KERN_INFO "TS-78xx RTC" 180 printk(KERN_INFO "TS-78xx: RTC not registered\n");
192 " not detected or enabled\n");
193 ts78xx_fpga.supports.ts_rtc.present = 0; 181 ts78xx_fpga.supports.ts_rtc.present = 0;
194 } 182 }
195 ret |= tmp; 183 ret |= tmp;