From patchwork Thu Jul 16 11:26:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51157 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A3CB522A28 for ; Thu, 16 Jul 2015 11:28:22 +0000 (UTC) Received: by lagw2 with SMTP id w2sf17996986lag.3 for ; Thu, 16 Jul 2015 04:28:21 -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: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=S802mLVwyvW1ZLk+Tf4T2s1Z14zds4xnve6i6LbHDW8=; b=XqW4Oj+4HKSR+EoevSJzfD7SBwIcd1WvHG1V1yImcO/kCFVZVonKQJEpQsMXlzgpG5 ycwGlIDOi9RCvcYaKGxhVY2R5R8TxfJdleLicUGrnwztg+H+T0bqvViIHe55NPOC/qoc 4wXxRfGVAbpYMjmOyreIQgyTPMRY1vWvVQKI4q9lWD7RNDvNOa4/++DsWZD9vTAjbWKF 2W3nrY/rqnKyeN6dDAa4jaF3WWbJ0tuB0HJ5eaUXb7Rm8QknOHJ//rANcFDqd8qK9Wjc NosBL7F+eleW7op0YXq7HfbNczp+o3/f1J8JzyyexXr+SczoBKHYtr3fABSQnLp9u1Xd 5zXw== X-Gm-Message-State: ALoCoQl/vGLKhgb2APiTPnXuvG57o2kdcqa0qq2iAdabQ74epm3OdwWEit6JaDP3ktat79EHehr/ X-Received: by 10.194.5.229 with SMTP id v5mr4680082wjv.0.1437046101584; Thu, 16 Jul 2015 04:28:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.230 with SMTP id y6ls386673lae.20.gmail; Thu, 16 Jul 2015 04:28:21 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr8912170lbx.70.1437046101259; Thu, 16 Jul 2015 04:28:21 -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 n5si6662832laf.168.2015.07.16.04.28.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 04:28:21 -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 lbbpo10 with SMTP id po10so41641410lbb.3 for ; Thu, 16 Jul 2015 04:28:21 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr8888091lal.29.1437046101156; Thu, 16 Jul 2015 04:28:21 -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.108.230 with SMTP id hn6csp191608lbb; Thu, 16 Jul 2015 04:28:20 -0700 (PDT) X-Received: by 10.68.57.144 with SMTP id i16mr17973614pbq.130.1437046099405; Thu, 16 Jul 2015 04:28:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si12536145pbt.113.2015.07.16.04.28.18; Thu, 16 Jul 2015 04:28:19 -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 S932225AbbGPL2B (ORCPT + 27 others); Thu, 16 Jul 2015 07:28:01 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:35212 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932087AbbGPL16 (ORCPT ); Thu, 16 Jul 2015 07:27:58 -0400 Received: by pdrg1 with SMTP id g1so42876461pdr.2 for ; Thu, 16 Jul 2015 04:27:58 -0700 (PDT) X-Received: by 10.68.181.163 with SMTP id dx3mr17538259pbc.5.1437046078172; Thu, 16 Jul 2015 04:27:58 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id f1sm7684791pdp.39.2015.07.16.04.27.56 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Jul 2015 04:27:57 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , David Howells , Koichi Yasutake , linux-am33-list@redhat.com Subject: [PATCH 10/23] mn10300/cevt-mn10300: Migrate to new 'set-state' interface Date: Thu, 16 Jul 2015 16:56:22 +0530 Message-Id: <5e0e760d14e28522cd7d9c45272dac72a2e291bb.1437044517.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: 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: viresh.kumar@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: , 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 --- 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 60f64ca1752a..3aae9f5a98aa 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;