Received: by 10.223.185.116 with SMTP id b49csp1166058wrg; Wed, 21 Feb 2018 13:19:25 -0800 (PST) X-Google-Smtp-Source: AH8x224gLgqOK29LOSYYcaq3a/NKfvtgIb3tol2xzHtTDfDvkXY525qh8MvIXPFM2xd8JgrKsg/m X-Received: by 10.99.113.75 with SMTP id b11mr3817214pgn.271.1519247965672; Wed, 21 Feb 2018 13:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519247965; cv=none; d=google.com; s=arc-20160816; b=VCgdQS+juXcAV6OsUaMD7YK+hDKfM8z2Oeah+rv3wR/WuwtbhEi/dUjJ5ox7rlhv0h hzKsVPof7ZL8aG8bC3wEMvowNql0EvqIg0XHP5UOOerMxAJo+fbsjT36DczpYXnkJFDR lMd1RrJSsmV7RZwCqOatwEOX0M9xjZSRasCydPBHqx+jPl0Gma3Qm7M2jZbGoQ+mvBEW DiXyACOhfP1u5WfhVU1SrKRKsaBA6ishAgiGsoFk8Whglv4XVMcPenxSoBmoc2hUCxTr H47tviyyBhzYP3fi7Gr6qu0IPBF67mBD/Kiyi0NfEpwYPkkUhB7YKMd3KPlG7JQ3Q1vi aLOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bEUFm3pvXw1LNzhF1ymyt2tIm3W1VCGsU4mAHgfBXXY=; b=E4Iax689RkLt32gQp02xGJMghVz6L6Dl2ZQdnPlCIHaLkbwFNuiFG36gNrBZrXpk6y x8OT0jWWd6VxxpoAzvoUvIUDWFViOVu/mxixXV1X45QhTi3XoC2s/4LtzxeN2zV+5msg f98sTr53Hld2po3pQkdz7t7/6pZjYDIm0oDzWIglXU1UxwPje9z8qaPLYBBGACaq8h40 AlYTHlBykttYghUe2nSJ+ujJJYftWtPUaIvp33GgrC4++Hfw957FuZhVU0R8UFOd947A Am6WsQu2eZC5db1KOvEeyT1tAUIZ87RFvUOt9F2669MomOOUvDeqbaztxLaLKT7dOwQp iXhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si641412pgs.795.2018.02.21.13.19.11; Wed, 21 Feb 2018 13:19:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751878AbeBUVRk (ORCPT + 99 others); Wed, 21 Feb 2018 16:17:40 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:46973 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbeBUU5Z (ORCPT ); Wed, 21 Feb 2018 15:57:25 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 2A7D5207FF; Wed, 21 Feb 2018 21:57:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id 51FF420371; Wed, 21 Feb 2018 21:57:01 +0100 (CET) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 037/100] rtc: m48t59: stop validating rtc_time in .read_time Date: Wed, 21 Feb 2018 21:55:32 +0100 Message-Id: <20180221205635.31314-38-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180221205635.31314-1-alexandre.belloni@bootlin.com> References: <20180221205635.31314-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC core is always calling rtc_valid_tm after the read_time callback. It is not necessary to call it just before returning from the callback. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m48t59.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index c6af83505448..52c7e35a5860 100644 --- a/drivers/rtc/rtc-m48t59.c +++ b/drivers/rtc/rtc-m48t59.c @@ -105,7 +105,7 @@ static int m48t59_rtc_read_time(struct device *dev, struct rtc_time *tm) dev_dbg(dev, "RTC read time %04d-%02d-%02d %02d/%02d/%02d\n", tm->tm_year + 1900, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); - return rtc_valid_tm(tm); + return 0; } static int m48t59_rtc_set_time(struct device *dev, struct rtc_time *tm) -- 2.16.1