Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wuzhangjin@gmail.com>
Cc: Arnaud Patard <apatard@mandriva.com>
Cc: linux-mips@linux-mips.org
Cc: rtc-linux@googlegroups.com
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Patchwork: http://patchwork.linux-mips.org/patch/570/
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Wu Zhangjin and committed by
Ralf Baechle
95abd0df cf72e947

+2 -1
+2 -1
drivers/rtc/rtc-cmos.c
··· 686 686 */ 687 687 #if defined(CONFIG_ATARI) 688 688 address_space = 64; 689 - #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__sparc__) 689 + #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) \ 690 + || defined(__sparc__) || defined(__mips__) 690 691 address_space = 128; 691 692 #else 692 693 #warning Assuming 128 bytes of RTC+NVRAM address space, not 64 bytes.