From patchwork Tue Jan 13 15:44:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xunlei Pang X-Patchwork-Id: 43055 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C88620DE8 for ; Tue, 13 Jan 2015 15:46:46 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id a1sf2095833wgh.3 for ; Tue, 13 Jan 2015 07:46:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2pJAYPgJFQUaD8t4lSnv5FEZDwXoDLud+IFhE5fK4Io=; b=HzhzVOcHjLBkfVNlriHW10bYjR+xsa8w37wkYgjHLs9uoaJftLszd2EJQsyjLLP7B8 tt6JwZNosJ2dphHtyG3s3NlOtrE6gccgO3uR63Horym0aPT6V6lH7hqvVBgBADTGgyBt inWgodFMa50rRgdsIDI4RAPrxJlIL1R/xaRXQuwHwwT8OaxYCyNtGG682m68n9oIJoyA 24wvlWOeN60dEF+n3oagZgfKku9hj1RkbvI/qjJW2sJFJYkNh9wfDiwphHeyjjJyAhC6 camvdsdRKS/u6vl5MY7hPje11WkXaYn6v0nkF2PrXVY19td5YOR9Rz4iHsTVpgA5kJt4 yDIg== X-Gm-Message-State: ALoCoQlj0VyO2NS49Vn+DElmu9S/DjuckH8SAmctrmezPkDKcAA6o1bqSEMSbk1XKTrl9JEA9QKj X-Received: by 10.112.141.232 with SMTP id rr8mr4580531lbb.0.1421164005709; Tue, 13 Jan 2015 07:46:45 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.2 with SMTP id f2ls9761lah.60.gmail; Tue, 13 Jan 2015 07:46:45 -0800 (PST) X-Received: by 10.152.205.104 with SMTP id lf8mr37406224lac.94.1421164005482; Tue, 13 Jan 2015 07:46:45 -0800 (PST) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com. [2a00:1450:4010:c03::235]) by mx.google.com with ESMTPS id tz3si24597867lbb.66.2015.01.13.07.46.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Jan 2015 07:46:45 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::235 as permitted sender) client-ip=2a00:1450:4010:c03::235; Received: by mail-la0-f53.google.com with SMTP id gm9so3300355lab.12 for ; Tue, 13 Jan 2015 07:46:45 -0800 (PST) X-Received: by 10.152.115.146 with SMTP id jo18mr43527571lab.9.1421164005344; Tue, 13 Jan 2015 07:46:45 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1420978lbb; Tue, 13 Jan 2015 07:46:44 -0800 (PST) X-Received: by 10.70.33.228 with SMTP id u4mr53008202pdi.146.1421164003529; Tue, 13 Jan 2015 07:46:43 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ot2si12728737pbb.53.2015.01.13.07.46.42; Tue, 13 Jan 2015 07:46:43 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbbAMPql (ORCPT + 27 others); Tue, 13 Jan 2015 10:46:41 -0500 Received: from m15-111.126.com ([220.181.15.111]:37348 "EHLO m15-111.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752830AbbAMPqh (ORCPT ); Tue, 13 Jan 2015 10:46:37 -0500 Received: from vptest-PC.zte.com.cn (unknown [182.149.91.53]) by smtp1 (Coremail) with SMTP id C8mowEAZEUVxPbVUBIRpDg--.692S12; Tue, 13 Jan 2015 23:45:02 +0800 (CST) From: Xunlei Pang To: linux-kernel@vger.kernel.org, John Stultz , Arnd Bergmann Cc: rtc-linux@googlegroups.com, Thomas Gleixner , Alessandro Zummo , Xunlei Pang Subject: [RFC PATCH v2 9/9] alpha: change to use rtc_class_ops's set_mmss64() Date: Tue, 13 Jan 2015 23:44:57 +0800 Message-Id: <1421163897-8020-10-git-send-email-xlpang@126.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1421163897-8020-1-git-send-email-xlpang@126.com> References: <1421163897-8020-1-git-send-email-xlpang@126.com> X-CM-TRANSID: C8mowEAZEUVxPbVUBIRpDg--.692S12 X-Coremail-Antispam: 1Uf129KBjvJXoW7AF47Kw1rJrW3GF4DGw4UJwb_yoW8WFy5pF 47u34DGr4UGFZrKa48XF4kCw1F9ryfKayxKw13C3WfCa15JF13ZF18GrW7AFy3GFyvkas3 W3s8Wry5X3W8GaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jdNVgUUUUU= X-Originating-IP: [182.149.91.53] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbigQKAv1E0a1uClwABs9 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: xlpang@126.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::235 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=126.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Xunlei Pang Change alpha_rtc_set_mmss() and remote_set_mmss() to use rtc_class_ops's set_mmss64(). Signed-off-by: Xunlei Pang --- arch/alpha/kernel/rtc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/alpha/kernel/rtc.c b/arch/alpha/kernel/rtc.c index c8d284d..f535a3f 100644 --- a/arch/alpha/kernel/rtc.c +++ b/arch/alpha/kernel/rtc.c @@ -116,7 +116,7 @@ alpha_rtc_set_time(struct device *dev, struct rtc_time *tm) } static int -alpha_rtc_set_mmss(struct device *dev, unsigned long nowtime) +alpha_rtc_set_mmss(struct device *dev, time64_t nowtime) { int retval = 0; int real_seconds, real_minutes, cmos_minutes; @@ -211,7 +211,7 @@ alpha_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) static const struct rtc_class_ops alpha_rtc_ops = { .read_time = alpha_rtc_read_time, .set_time = alpha_rtc_set_time, - .set_mmss = alpha_rtc_set_mmss, + .set_mmss64 = alpha_rtc_set_mmss, .ioctl = alpha_rtc_ioctl, }; @@ -276,7 +276,7 @@ do_remote_mmss(void *data) } static int -remote_set_mmss(struct device *dev, unsigned long now) +remote_set_mmss(struct device *dev, time64_t now) { union remote_data x; if (smp_processor_id() != boot_cpuid) { @@ -290,7 +290,7 @@ remote_set_mmss(struct device *dev, unsigned long now) static const struct rtc_class_ops remote_rtc_ops = { .read_time = remote_read_time, .set_time = remote_set_time, - .set_mmss = remote_set_mmss, + .set_mmss64 = remote_set_mmss, .ioctl = alpha_rtc_ioctl, }; #endif