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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by Wu Zhangjin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
---
 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



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

by Ralf Baechle DL5RB :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 05, 2009 at 09:21:54AM +0800, Wu Zhangjin wrote:

> 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@...>

Acked-by: Ralf Baechle <ralf@...>

  Ralf


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

by Wu Zhangjin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-11-05 at 08:41 +0100, Ralf Baechle wrote:

> On Thu, Nov 05, 2009 at 09:21:54AM +0800, Wu Zhangjin wrote:
>
> > 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@...>
>
> Acked-by: Ralf Baechle <ralf@...>
>
>
>   Ralf

Hi, Paul or Alessandro

Could you please apply this pathset?

thanks!

Regards,
        Wu Zhangjin