From patchwork Thu Jan 15 23:46:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dann frazier X-Patchwork-Id: 18883 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from yw-out-2122.google.com (yw-out-2122.google.com [74.125.46.24]) by ozlabs.org (Postfix) with ESMTP id AB680DE359 for ; Fri, 16 Jan 2009 10:47:12 +1100 (EST) Received: by yw-out-2122.google.com with SMTP id 7so5304ywi.11 for ; Thu, 15 Jan 2009 15:47:10 -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-spf:authentication-results:received :received:received:x-virus-scanned:received:received:received:from :to:cc:subject:date:message-id:x-mailer:in-reply-to:references :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=ZRlRjtIkqx6j7nnGnz6qx9kl2xoIPdNwiEaCuT5W6jk=; b=iXR688uVMuZL9ZJEU+nNT3dAZH5ZTlA9q561BpmCBibbgwDu3Tc0Nj+HCGoLFNidaM tGbk8lzjsN7QD7Mvejy8vGSuABiYWI+fAO/tii/0TwELsr/OPxHv2qaxiS85KWGAFZLO XoUQxQo/TyMk0tSetn6rBCZR11ApzH8M6tS8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :x-virus-scanned: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=aiHvbD412fB83MZd2Oqz4lgC8maA6H4B/NwCaxAya1VUly/V8Lp8ZPnVkkPDYw5pyD Y3476qJQyY+dvQRFrT52kOogsLq143spT7bcPUPFriQoU0nRVAZtKz8ZkxvRplRsFv9y NuX3JBR/LM9Ng7T3ww5jWFVcBn8d4OULs0ZAg= Received: by 10.90.88.16 with SMTP id l16mr250399agb.6.1232063227490; Thu, 15 Jan 2009 15:47:07 -0800 (PST) Received: by 10.176.150.34 with SMTP id x34gr1812yqd.0; Thu, 15 Jan 2009 15:47:07 -0800 (PST) X-Sender: dannf@ldl.fc.hp.com X-Apparently-To: rtc-linux@googlegroups.com Received: by 10.90.65.5 with SMTP id n5mr1262829aga.23.1232063227209; Thu, 15 Jan 2009 15:47:07 -0800 (PST) Received: from g1t0026.austin.hp.com (g1t0026.austin.hp.com [15.216.28.33]) by mx.google.com with ESMTP id 39si192345yxd.12.2009.01.15.15.47.07; Thu, 15 Jan 2009 15:47:07 -0800 (PST) Received-SPF: pass (google.com: domain of dannf@ldl.fc.hp.com designates 15.216.28.33 as permitted sender) client-ip=15.216.28.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dannf@ldl.fc.hp.com designates 15.216.28.33 as permitted sender) smtp.mail=dannf@ldl.fc.hp.com Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g1t0026.austin.hp.com (Postfix) with ESMTP id D3A62C175; Thu, 15 Jan 2009 23:47:06 +0000 (UTC) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.11.146.30]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 7C38824029; Thu, 15 Jan 2009 23:47:06 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl.fc.hp.com (Postfix) with ESMTP id C91EB39C07B; Thu, 15 Jan 2009 16:47:05 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at ldl.fc.hp.com Received: from ldl.fc.hp.com ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7u7DdCLrC1Df; Thu, 15 Jan 2009 16:47:00 -0700 (MST) Received: from krebs (krebs.dannf [10.8.0.7]) by ldl.fc.hp.com (Postfix) with ESMTP id C2FD539C043; Thu, 15 Jan 2009 16:46:58 -0700 (MST) Received: by krebs (Postfix, from userid 20800) id 6E6E93B6925; Thu, 15 Jan 2009 16:46:57 -0700 (MST) From: dann frazier To: linux-parisc@vger.kernel.org, rtc-linux@googlegroups.com Cc: lkml@vger.kernel.org, kyle@mcmartin.ca, dann frazier Subject: [rtc-linux] [PATCH 4/9] Use rtc_valid_tm() in parisc_get_time Date: Thu, 15 Jan 2009 16:46:51 -0700 Message-Id: <9b29163437fb37dc4996b17bcdb41192dbc79e9a.1231983599.git.dannf@hp.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <0c2b8df6ecd123038e8458eeb9924b7959a707fa.1231983599.git.dannf@hp.com> References: <5bda6a81bf9fa4a3b60253bca73ef629a6ccc629.1231983599.git.dannf@hp.com> <0c29db565874aae3a60172ad42635fb8f60e8369.1231983599.git.dannf@hp.com> <0c2b8df6ecd123038e8458eeb9924b7959a707fa.1231983599.git.dannf@hp.com> 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 Use the return value of rtc_valid_tm() instead of just returning 0. Signed-off-by: dann frazier --- drivers/rtc/rtc-parisc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c index ee4e9a3..0477cc1 100644 --- a/drivers/rtc/rtc-parisc.c +++ b/drivers/rtc/rtc-parisc.c @@ -20,7 +20,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm) if (ret & RTC_BATT_BAD) return -EOPNOTSUPP; - return 0; + return rtc_valid_tm(tm); } static int parisc_set_time(struct device *dev, struct rtc_time *tm)