linux-mips
[Top] [All Lists]

[PATCH v1 2/3] RTC: rtc-cmos.c: enable RTC_DM_BINARY of RTC_LIB for fulo

To: Paul Gortmaker <p_gortmaker@yahoo.com>, Alessandro Zummo <a.zummo@towertech.it>
Subject: [PATCH v1 2/3] RTC: rtc-cmos.c: enable RTC_DM_BINARY of RTC_LIB for fuloong2e and fuloong2f
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Thu, 5 Nov 2009 09:22:09 +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=NPftuhRaJYz4+H8IsD9Pn3875PTOFXmVM8IhiNpvzV4=; b=XzAKdzLiyVdkQydOebXrxB33lHxBz72fNVZ4yQMTCCzrrT5g5SZQTIaXqbC+b7v8FR ARUyfKySudyLr1YNX5mG8xXkH3iseK9JPiOsMFDKPA8RZWQlaj/vEQcYopVR2hn0mCLq lDiULNtf44raWv0e7BfSO7kuo0njtyacEOK6I=
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=imnv9FRvB9gLbJlebZyFvdcdgubmu8dKrUb+OzZgamy6JEKn21WNM37B693hlu5XRl IxGRuW8TlbQRaXI6RGGcpkJXGZEX6idv9yhvqWhwFsbZtsdeeiaRytWgAAdJWUYFdQkV rGjPKsnhyQSU7IZ4Ut7a3D3MYAbbU0GxnXHh0=
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 enables the RTC_DM_BINARY support for RTC_LIB of fuloong2e
and fuloong2f. without it, RTC_LIB not work on those machines.

The platform RTC device driver is coming in the next patch.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 drivers/rtc/rtc-cmos.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index 21e48f7..820bdad 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -757,9 +757,8 @@ cmos_do_probe(struct device *dev, struct resource *ports, 
int rtc_irq)
        /* FIXME teach the alarm code how to handle binary mode;
         * <asm-generic/rtc.h> doesn't know 12-hour mode either.
         */
-       if (is_valid_irq(rtc_irq) &&
-           (!(rtc_control & RTC_24H) || (rtc_control & (RTC_DM_BINARY)))) {
-               dev_dbg(dev, "only 24-hr BCD mode supported\n");
+       if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) {
+               dev_dbg(dev, "only 24-hr supported\n");
                retval = -ENXIO;
                goto cleanup1;
        }
-- 
1.6.2.1


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH v1 2/3] RTC: rtc-cmos.c: enable RTC_DM_BINARY of RTC_LIB for fuloong2e and fuloong2f, Wu Zhangjin <=