Message ID | 1499846682-14093-17-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp605554obm; Wed, 12 Jul 2017 01:10:52 -0700 (PDT) X-Received: by 10.84.135.101 with SMTP id 92mr2752356pli.56.1499847052412; Wed, 12 Jul 2017 01:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499847052; cv=none; d=google.com; s=arc-20160816; b=iiwIZKJKGFoLV1T5ORs5Of6oHUKG8IlupyhU/yaJlHsTxYxQOuqHG0TgYBzn/+ho4l n7IFrCDutoqsLxWEU+iHbMaQICRqN5LPE+vQsOjN+4L/tbn/zdOpPLcL49pSGliPGM+P +t4gxPVL8EpUcsFD1b+RTPQDntQJrmUgMVU0H+rT1HHIShDveLtletzrZ5ylid7CBrJx VJiXzQpqloIVnhVf5J/lUzhvuL5xjPlP23NI7VPvR/ZA/pT427pg9opL9T2pI/jtIrjn //Eo8koZdW4/laS9IB8mFuQtdQ/V4jKVDwOtC9iu8BN4MybVlXazXdrZwVITZhGYfZR5 WZdw== 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:dkim-signature:arc-authentication-results; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=WxQf1o19dlDLi4RuGymKSV/j5B2GxVfm0SKP0KdV9jTQv5CJ6OLWs6dOlLqPvbFtop JuGdnsfOtdYkqOXlJBSFCiyPhOc3hNnqVTpbtH430OlzSy6wP0vxbAZ8akMK7SDYc6D4 kIvslSzTMpZ1sazJgPkW29wytRgu4PD2AJQdQd3h+klHPXRtMb8GVSi7HPkQyES3B3j/ zyFB2YkwW4TBR8VsSM9+WcQKLkdpOT1MtJpMw9s4bJ0WI/JTfagTM5aA43pL18lwxrWm 8rxNEl1rWdUc+Vi5h8JgWHVsYfiZ78ypKmrhxcD2h1K8cg6PxCti50vkwTZ+NrG1tp20 QTpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=dLalJBRK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v89si1409653pfj.370.2017.07.12.01.10.52; Wed, 12 Jul 2017 01:10:52 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=dLalJBRK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933746AbdGLIK3 (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 12 Jul 2017 04:10:29 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:36760 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757071AbdGLIFl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2017 04:05:41 -0400 Received: by mail-wr0-f175.google.com with SMTP id c11so22380195wrc.3 for <linux-kernel@vger.kernel.org>; Wed, 12 Jul 2017 01:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=dLalJBRKD6xEw70Ox3Tr7QboV+VawrvOIk4+cg+s0lLaQdBw2HknG2ts1dwIXY8V+A nX5ymMPPCHLrjqftF+SNhWP+4RmVfXa3KsB+Mbq8GM/bPQyMoBcp6yM9TZxBGmuzAbAy dOBw2QJRUc5uNC9r29FCoenxd8QZGjDFe90hI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=ktBrexWpXlB4kMBcL+9frfexGQXsGNb7k0M/GoeyvlIdFrD8/wnupbiKjoF/oeWVw9 cpD1ikEisdiKt8juwEGBErbeT+hE+2QAABkgB/Em3axTA8el4KAlDuMZeewZBqslfpjb qMOuAp0muQxNWrIGwhmNloMm07VA5zq7DroMSdW/y3J1OPqcnQD1An4T1HOYIbC6omd3 R/8Xzl+XLDNj2plXCytkWIHw83pCpwaEffL0VzzJWTwbNsYxn37W9EWx4WR0bMw7l4HR 0/Klylk24tzaNTHB/sxXYaVxFQqePSfz4Plmb25jwju3c6tb/qJPUSIY1oa0QprJTyY/ iBeg== X-Gm-Message-State: AIVw111qqD0EJ02GJyJBUPo+OhZqAN8C3abXFn7DBYY0xfN629A6kGBW pl+k8FyFaurjz4bD X-Received: by 10.223.145.10 with SMTP id j10mr1928783wrj.172.1499846735285; Wed, 12 Jul 2017 01:05:35 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.158.26]) by smtp.gmail.com with ESMTPSA id p34sm1430744wrc.66.2017.07.12.01.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:34 -0700 (PDT) From: Benjamin Gaignard <benjamin.gaignard@linaro.org> To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 16/22] rtc: sh: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:36 +0200 Message-Id: <1499846682-14093-17-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> References: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[v2,01/22] x86: rtc: stop using rtc deprecated functions
|
expand
|
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 6c2d398..f65da1e 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c @@ -694,7 +694,7 @@ static int __init sh_rtc_probe(struct platform_device *pdev) /* reset rtc to epoch 0 if time is invalid */ if (rtc_read_time(rtc->rtc_dev, &r) < 0) { - rtc_time_to_tm(0, &r); + rtc_time64_to_tm(0, &r); rtc_set_time(rtc->rtc_dev, &r); }
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> CC: Alessandro Zummo <a.zummo@towertech.it> CC: Alexandre Belloni <alexandre.belloni@free-electrons.com> CC: rtc-linux@googlegroups.com CC: linux-kernel@vger.kernel.org --- drivers/rtc/rtc-sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1