From patchwork Mon Aug 10 09:52:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 52169 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id BE4432152A for ; Mon, 10 Aug 2015 09:57:38 +0000 (UTC) Received: by labth1 with SMTP id th1sf59666968lab.2 for ; Mon, 10 Aug 2015 02:57:37 -0700 (PDT) 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=ofBShraylzHKSwtvUlPFGv2HH2i7sHaOBd463ReEeEA=; b=E3HFagS4Exi3kFmywp+jIoPUqBGMvaqLfoVLL96itlfs/uJ0qAFfdpr26BRJnDomgf IjsYhqNY+fd5SfGT1TxWWiryuT4DTQVdbu+YuJcsg0OLf5AwVgwPKXZMHyZS4rxlpkQg vTCbpzjI86PmqvHyGOG05UN5INTyKLpVOXTomQcSmjotH3Sj6qPkTa0o4ALATXvc5IjI aiOGeOn7ouX6ySd7AbL4mJXUWUutH/UZcHPkN1WsWNYxAt4eBqrG5B9t1+wm1Z7vbuzn tO2exc+US4LJC4UdbS7aSrUHoz3kSl00qoj7qUKR/uM3lt9AMWC5/3RQB5TB1ok3ICWK PjeA== X-Gm-Message-State: ALoCoQn7oSBVXFjsX0Cx7eCTIRaPjuJUV1YC29juP2mUXdJMxtC3wCcGK3zKpvg1eAUIts3lgp9j X-Received: by 10.152.6.103 with SMTP id z7mr6072078laz.8.1439200657368; Mon, 10 Aug 2015 02:57:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.195 with SMTP id ao3ls772334lac.53.gmail; Mon, 10 Aug 2015 02:57:37 -0700 (PDT) X-Received: by 10.112.163.226 with SMTP id yl2mr19525570lbb.100.1439200657064; Mon, 10 Aug 2015 02:57:37 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id z10si13731920lag.116.2015.08.10.02.57.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 02:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbpu9 with SMTP id pu9so64574499lbb.3 for ; Mon, 10 Aug 2015 02:57:36 -0700 (PDT) X-Received: by 10.112.129.137 with SMTP id nw9mr13283388lbb.19.1439200656784; Mon, 10 Aug 2015 02:57:36 -0700 (PDT) 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.7.198 with SMTP id l6csp1828979lba; Mon, 10 Aug 2015 02:57:35 -0700 (PDT) X-Received: by 10.68.200.72 with SMTP id jq8mr16852813pbc.91.1439200655459; Mon, 10 Aug 2015 02:57:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gk2si32398021pac.68.2015.08.10.02.57.05; Mon, 10 Aug 2015 02:57:35 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754741AbbHJJ5D (ORCPT + 28 others); Mon, 10 Aug 2015 05:57:03 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34165 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933430AbbHJJzC (ORCPT ); Mon, 10 Aug 2015 05:55:02 -0400 Received: by wicne3 with SMTP id ne3so128887047wic.1 for ; Mon, 10 Aug 2015 02:55:01 -0700 (PDT) X-Received: by 10.194.175.65 with SMTP id by1mr46731799wjc.152.1439200501278; Mon, 10 Aug 2015 02:55:01 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id jr5sm28598154wjc.14.2015.08.10.02.54.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 02:55:00 -0700 (PDT) From: Daniel Lezcano To: mingo@kernel.org Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, Viresh Kumar , David Howells , Koichi Yasutake , linux-am33-list@redhat.com Subject: [PATCH 63/74] mn10300/cevt-mn10300: Migrate to new 'set-state' interface Date: Mon, 10 Aug 2015 11:52:20 +0200 Message-Id: <1439200352-26767-63-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439200352-26767-1-git-send-email-daniel.lezcano@linaro.org> References: <55C87382.4070309@linaro.org> <1439200352-26767-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org 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: Viresh Kumar Migrate mn10300 driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. We weren't doing anything in the ->set_mode() callback. So, this patch doesn't provide any set-state callbacks. Cc: David Howells Cc: Koichi Yasutake Cc: linux-am33-list@redhat.com Signed-off-by: Viresh Kumar Signed-off-by: Daniel Lezcano --- arch/mn10300/kernel/cevt-mn10300.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/mn10300/kernel/cevt-mn10300.c b/arch/mn10300/kernel/cevt-mn10300.c index 60f64ca..3aae9f5 100644 --- a/arch/mn10300/kernel/cevt-mn10300.c +++ b/arch/mn10300/kernel/cevt-mn10300.c @@ -41,12 +41,6 @@ static int next_event(unsigned long delta, return 0; } -static void set_clock_mode(enum clock_event_mode mode, - struct clock_event_device *evt) -{ - /* Nothing to do ... */ -} - static DEFINE_PER_CPU(struct clock_event_device, mn10300_clockevent_device); static DEFINE_PER_CPU(struct irqaction, timer_irq); @@ -108,7 +102,6 @@ int __init init_clockevents(void) cd->rating = 200; cd->cpumask = cpumask_of(smp_processor_id()); - cd->set_mode = set_clock_mode; cd->event_handler = event_handler; cd->set_next_event = next_event;