Message ID | 20100208212101.GA10953@pengutronix.de |
---|---|
State | Superseded |
Headers | show
Return-Path: <3SIBwSwAACYQz1k-tqv25owwotmozw2x0.kwu@groups.bounces.google.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yx0-f142.google.com (mail-yx0-f142.google.com [209.85.210.142]) by ozlabs.org (Postfix) with ESMTP id 062EBB7C06 for <incoming@patchwork.ozlabs.org>; Tue, 9 Feb 2010 08:21:13 +1100 (EST) Received: by yxe6 with SMTP id 6sf7156879yxe.1 for <incoming@patchwork.ozlabs.org>; Mon, 08 Feb 2010 13:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received:date:from:to:cc:subject :message-id:references:mime-version:in-reply-to:user-agent :x-sa-exim-connect-ip:x-sa-exim-mail-from:x-sa-exim-scanned :x-ptx-original-recipient:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-subscribe:list-unsubscribe:content-type:content-disposition :content-transfer-encoding; bh=9ivizHgxhbnMIMofNT1TlTGltYyl/DOPbwQD897wurc=; b=mRYilCJGK/O4qVTdQXGQKjyTrDS1v8toXNesgEDnHTMcIgLChxo9XftKX5bFWWFi2p OHujNZ9wvQQgv7ZcroR+yO6QhEh980xehVlsi3wvy2HIqG9LCnbCKA7aP8Kq+J/9Qvj5 4f6w4uTTCtTvSASvfRJ/j1QHHd20HPiJjHlLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:x-sa-exim-connect-ip :x-sa-exim-mail-from:x-sa-exim-scanned:x-ptx-original-recipient :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-disposition:content-transfer-encoding; b=TDoJDH2cucsvtqPsZifwvamMXepAJbI76iY5fahu2g8KuNbKfIvEZf3OaP52mbs/KD eDwr+JHL/788A1oz4/aU41xoAbKIg5l8e1IbPcUV8vwvrnAjazpa9bkOrev0o9D/msqf s2Zyrqo7VBGcMFuP3op9f0cw6dzXe7f2q1AF4= Received: by 10.101.139.31 with SMTP id r31mr623121ann.24.1265664072116; Mon, 08 Feb 2010 13:21:12 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.223.58.206 with SMTP id i14ls610176fah.1.p; Mon, 08 Feb 2010 13:21:11 -0800 (PST) Received: by 10.223.161.210 with SMTP id s18mr349851fax.23.1265664062694; Mon, 08 Feb 2010 13:21:02 -0800 (PST) Received: by 10.223.161.210 with SMTP id s18mr349850fax.23.1265664062673; Mon, 08 Feb 2010 13:21:02 -0800 (PST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gmr-mx.google.com with ESMTP id 12si672487fxm.5.2010.02.08.13.21.02; Mon, 08 Feb 2010 13:21:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of ukl@pengutronix.de designates 92.198.50.35 as permitted sender) client-ip=92.198.50.35; Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.69) (envelope-from <ukl@pengutronix.de>) id 1Neb2U-0002BV-Cr; Mon, 08 Feb 2010 22:21:02 +0100 Received: from ukl by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from <ukl@pengutronix.de>) id 1Neb2T-0002qw-MZ; Mon, 08 Feb 2010 22:21:01 +0100 Date: Mon, 8 Feb 2010 22:21:01 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= <u.kleine-koenig@pengutronix.de> To: rtc-linux@googlegroups.com Cc: Paul Gortmaker <p_gortmaker@yahoo.com>, Alessandro Zummo <a.zummo@towertech.it>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org Subject: [rtc-linux] Re: [PATCH] rtc/hctosys: only claim the RTC provided the system time if it did Message-ID: <20100208212101.GA10953@pengutronix.de> References: <1265663419-10165-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <1265663419-10165-1-git-send-email-u.kleine-koenig@pengutronix.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: rtc-linux@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of ukl@pengutronix.de designates 92.198.50.35 as permitted sender) smtp.mail=ukl@pengutronix.de X-Original-Sender: u.kleine-koenig@pengutronix.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> X-Thread-Url: http://groups.google.com/group/rtc-linux/t/c7fb28a151baff82 X-Message-Url: http://groups.google.com/group/rtc-linux/msg/ad5ff4b60c06f45c Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable |
diff --git a/drivers/rtc/rtc-sysfs.c b/drivers/rtc/rtc-sysfs.c index 7dd23a6..380083c 100644 --- a/drivers/rtc/rtc-sysfs.c +++ b/drivers/rtc/rtc-sysfs.c @@ -107,8 +107,9 @@ rtc_sysfs_show_hctosys(struct device *dev, struct device_attribute *attr, char *buf) { #ifdef CONFIG_RTC_HCTOSYS_DEVICE - if (strcmp(dev_name(&to_rtc_device(dev)->dev), - CONFIG_RTC_HCTOSYS_DEVICE) == 0) + if (rtc_hctosys_ret == 0 && + strcmp(dev_name(&to_rtc_device(dev)->dev), + CONFIG_RTC_HCTOSYS_DEVICE) == 0) return sprintf(buf, "1\n"); else #endif