From patchwork Thu Oct 7 08:20:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kukjin Kim X-Patchwork-Id: 67008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-fx0-f56.google.com (mail-fx0-f56.google.com [209.85.161.56]) by ozlabs.org (Postfix) with ESMTP id E5B41B70D4 for ; Thu, 7 Oct 2010 19:29:51 +1100 (EST) Received: by fxm1 with SMTP id 1sf101858fxm.11 for ; Thu, 07 Oct 2010 01:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:from:to :cc:subject:date:message-id:x-mailer:in-reply-to:references :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; bh=lfRkcrV+ZU7y8uuXhminlrZk+G9jvkeAd3py1qclf1I=; b=JZypCLyTsqkpOOx85UQ2+ZuEmOBw7/jWg7FvoOhDCwz3TNxXbSBdfKBZm5miSgYFGq AerJko4xCQmMRWzw8Urek5smxDfnyYWjwNkSG82odP1ed/Vqj2XFUj7l3+zGztDuIty3 wyLKDqSjYYQ7cSzNrDFLnxLe0dcRBtlmxLljU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=yj4Ihu5QLT1OujSlqCZXxWQ5O1Zh8nXa6SIAYB+9vtaiIwgzoE1BRX2UmsadBR1q41 +9J11OZAObn6ntwgd/JmkFW5g/uEYaIVCWsjagzu+MRFyE7CC3WedfB3NWsN1a2VBqIK p2uoHOgLoRK6BT6mMTCq8tGDmQTVMcfuu6l7Q= Received: by 10.223.30.25 with SMTP id s25mr5068fac.13.1286440188235; Thu, 07 Oct 2010 01:29:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.223.26.6 with SMTP id b6ls2475212fac.1.p; Thu, 07 Oct 2010 01:29:47 -0700 (PDT) Received: by 10.223.124.212 with SMTP id v20mr15244far.17.1286440187488; Thu, 07 Oct 2010 01:29:47 -0700 (PDT) Received: by 10.223.124.212 with SMTP id v20mr15243far.17.1286440187465; Thu, 07 Oct 2010 01:29:47 -0700 (PDT) Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) by gmr-mx.google.com with ESMTP id 28si501640fas.11.2010.10.07.01.29.47; Thu, 07 Oct 2010 01:29:47 -0700 (PDT) Received-SPF: neutral (google.com: 213.95.27.120 is neither permitted nor denied by best guess record for domain of kgene.kim@samsung.com) client-ip=213.95.27.120; Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.69) (envelope-from ) id 1P3lrD-0005P6-K1; Thu, 07 Oct 2010 10:29:43 +0200 Received: from [12.23.102.184] (helo=localhost.localdomain) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1P3l6j-0001Vo-Vk; Thu, 07 Oct 2010 16:41:42 +0900 From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, rtc-linux@googlegroups.com Cc: ben-linux@fluff.org, p_gortmaker@yahoo.com, a.zummo@towertech.it, Kukjin Kim Subject: [rtc-linux] [PATCH 3/3] rtc: rtc-s3c: Add rtc_valid_tm in s3c_rtc_gettime() Date: Thu, 7 Oct 2010 17:20:08 +0900 Message-Id: <1286439608-22722-3-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1286439608-22722-1-git-send-email-kgene.kim@samsung.com> References: <1286439608-22722-1-git-send-email-kgene.kim@samsung.com> X-Original-Sender: kgene.kim@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 213.95.27.120 is neither permitted nor denied by best guess record for domain of kgene.kim@samsung.com) smtp.mail=kgene.kim@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This patch adds "rtc_valid_tm" in s3c_rtc_gettime() as per Wan ZongShun's suggestion. Suggested-by: Wan ZongShun Signed-off-by: Kukjin Kim Cc: Ben Dooks --- drivers/rtc/rtc-s3c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 125c50a..7d55a2c 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -185,7 +185,7 @@ static int s3c_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) rtc_tm->tm_year += 100; rtc_tm->tm_mon -= 1; - return 0; + return rtc_valid_tm(rtc_tm); } static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm)