From: Wu Zhangjin Date: Thu, 5 Nov 2009 01:21:54 +0000 (+0800) Subject: RTC: rtc-cmos.c: Fix warning on MIPS X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=95abd0dfaf5d2741dc9ebe733c9d609629a92b77;hp=cf72e9470dc071c395f7895b5cb9418dca27d07d;p=mv-sheeva.git RTC: rtc-cmos.c: Fix warning on MIPS This patch fixes the following warning with RTC_LIB on MIPS: drivers/rtc/rtc-cmos.c:697:2: warning: #warning Assuming 128 bytes of RTC+NVRAM address space, not 64 bytes. Signed-off-by: Wu Zhangjin Cc: Arnaud Patard Cc: linux-mips@linux-mips.org Cc: rtc-linux@googlegroups.com Cc: Paul Gortmaker Cc: Alessandro Zummo Patchwork: http://patchwork.linux-mips.org/patch/570/ Acked-by: Alessandro Zummo Signed-off-by: Ralf Baechle --- diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index eb154dc5716..c8c12325e69 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -686,7 +686,8 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) */ #if defined(CONFIG_ATARI) address_space = 64; -#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__sparc__) +#elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) \ + || defined(__sparc__) || defined(__mips__) address_space = 128; #else #warning Assuming 128 bytes of RTC+NVRAM address space, not 64 bytes.