From patchwork Thu Nov 5 01:22:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 37715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pw0-f62.google.com (mail-pw0-f62.google.com [209.85.160.62]) by ozlabs.org (Postfix) with ESMTP id E752AB7BA9 for ; Thu, 5 Nov 2009 12:22:21 +1100 (EST) Received: by mail-pw0-f62.google.com with SMTP id 10so1116474pwj.1 for ; Wed, 04 Nov 2009 17:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:dkim-signature :domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:reply-to:sender :precedence:x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; bh=e2f6UzVHJHyBxRvEqxY+i5oXSM/s1iTfybI1UWm+Tk0=; b=Pun9aIktkFljgkJ7mvD6nLigHtsX84JWbwW0aow50tvJoy5t+aFLDdD+d0ING8gP5c TfGCbkQNgbl32f7lfz8Z+UDnd0jYdEeuqjQgCoQiP5ozS5iwdnJmPkjmS8eRkLRioHyD WmYI+blWn+HXWCOXMhJD4hpib4Uqo0pauPuyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :dkim-signature:domainkey-signature:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:reply-to:sender :precedence:x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; b=WoWBAjC6hdb9251kU17N36CelSAEuoPkYbguB7rqFh3LKm1LncS2blA+/8HZsLvcyO im//yj8S+XXBTr1WmpX64fsKBWa3lKOg+xOgORSwnx4Fz/Fgo44bAqv24JhXVkS75d1S BP9hmvjrSEBUp3zQriCOOJSM2n+jANlDIFOfo= Received: by 10.143.21.32 with SMTP id y32mr8385wfi.9.1257384140265; Wed, 04 Nov 2009 17:22:20 -0800 (PST) Received: by 10.106.139.12 with SMTP id m12gr3025prd.0; Wed, 04 Nov 2009 17:22:20 -0800 (PST) X-Sender: wuzhangjin@gmail.com X-Apparently-To: rtc-linux@googlegroups.com Received: by 10.143.21.41 with SMTP id y41mr288766wfi.23.1257384139386; Wed, 04 Nov 2009 17:22:19 -0800 (PST) Received: by 10.143.21.41 with SMTP id y41mr288765wfi.23.1257384139369; Wed, 04 Nov 2009 17:22:19 -0800 (PST) Received: from mail-pz0-f190.google.com (mail-pz0-f190.google.com [209.85.222.190]) by gmr-mx.google.com with ESMTP id 24si208419pzk.6.2009.11.04.17.22.18; Wed, 04 Nov 2009 17:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of wuzhangjin@gmail.com designates 209.85.222.190 as permitted sender) client-ip=209.85.222.190; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wuzhangjin@gmail.com designates 209.85.222.190 as permitted sender) smtp.mail=wuzhangjin@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by pzk28 with SMTP id 28so5123382pzk.27 for ; Wed, 04 Nov 2009 17:22:18 -0800 (PST) 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= Received: by 10.115.85.16 with SMTP id n16mr3555691wal.123.1257384137977; Wed, 04 Nov 2009 17:22:17 -0800 (PST) Received: from localhost.localdomain ([222.92.8.142]) by mx.google.com with ESMTPS id 22sm902654pzk.6.2009.11.04.17.22.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 17:22:17 -0800 (PST) From: Wu Zhangjin To: Paul Gortmaker , Alessandro Zummo Cc: linux-mips@linux-mips.org, rtc-linux@googlegroups.com, Wu Zhangjin Subject: [rtc-linux] [PATCH v1 2/3] RTC: rtc-cmos.c: enable RTC_DM_BINARY of RTC_LIB for fuloong2e and fuloong2f Date: Thu, 5 Nov 2009 09:22:09 +0800 Message-Id: X-Mailer: git-send-email 1.6.2.1 In-Reply-To: References: Reply-To: rtc-linux@googlegroups.com Sender: rtc-linux@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rtc-linux@googlegroups.com; contact rtc-linux+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rtc-linux@googlegroups.com X-BeenThere: rtc-linux@googlegroups.com 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 --- 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; * 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; }