linux-mips
[Top] [All Lists]

[PATCH v1 1/3] RTC: rtc-cmos.c: fix warning for MIPS

To: Paul Gortmaker <p_gortmaker@yahoo.com>, Alessandro Zummo <a.zummo@towertech.it>
Subject: [PATCH v1 1/3] RTC: rtc-cmos.c: fix warning for MIPS
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Thu, 5 Nov 2009 09:21:54 +0800
Cc: linux-mips@linux-mips.org, rtc-linux@googlegroups.com, Wu Zhangjin <wuzhangjin@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=sJ+iOluJCQ6sc76Zjx2FFM67odmKGDgVhE1XhWkBvgA=; b=l8znhImNDpd7gfSazP6MxmuAif61OnhCG+bTSbunKCmbYmayA28zCWsquKd52LaWxT 8PXBP/Pb80qazJI+rzqi7mYLh0cqpUsjt+4SUQYYSY/b9UHCzuD0E8OcQWr1w772UcJU 1dMYTmY5k2cP19dtFInTHqB1CW8IC1f8Dz5l4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Pjx4kUkkHiOCuSO9RQ38ejcsMU6+/F7FszrbBW1b1EQgbmPxKJxF5eNNKmGK2a4MmV oSBbjMd0fR+S++51leKOzGEFiaTOIhGt4ZDEcyCOiIdD7D+T0CSBIB9wbRHVeOavQE22 zNL8lCxjlqc2/2NYAIEWnNG9QT3O0YvJcd/Gk=
In-reply-to: <cover.1257383766.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1257383766.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
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>
---
 drivers/rtc/rtc-cmos.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index f7a4701..21e48f7 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -691,7 +691,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.
-- 
1.6.2.1


<Prev in Thread] Current Thread [Next in Thread>