From patchwork Thu Jun 18 10:54:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 6636021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A5B369F358 for ; Thu, 18 Jun 2015 11:39:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C803E20804 for ; Thu, 18 Jun 2015 11:39:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E16DF207D1 for ; Thu, 18 Jun 2015 11:39:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5Y8G-0007tq-Lx; Thu, 18 Jun 2015 11:37:20 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5Y5w-00056k-Uu for linux-arm-kernel@bombadil.infradead.org; Thu, 18 Jun 2015 11:34:57 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5XTs-0003yF-NG for linux-arm-kernel@lists.infradead.org; Thu, 18 Jun 2015 10:55:37 +0000 Received: by pdbci14 with SMTP id ci14so5699670pdb.2 for ; Thu, 18 Jun 2015 03:55:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=pnMOtEtSOwJ8LJ9D7Q1dZNUT7eF7sBfZOnJKhGwQIlU=; b=SKktMv2tcrzdZm+U6kuYMwBsjYUz+QQIuo//L4alsuY1c6RX3FVwG+HBMYtuvbNUsp peFItcOhnuhRhgf5xQTujWx9lUJOtCW74FX9Ul+G67ffBv7OxApEx7PNzE6FotGBYqYC /Szgp7YKQDl405Xo0hHIyeUXTB+/19QRSTDvW+QR6WWF1jTHo1KvOsA5cbscYs6zcDhN t9vXsZjyvbakNfdtRpiIYtt2zjngJMSmVsy44ezG1AcNLE9yNZPrDe2J0KLWsx9UObLK GGf44ZKm+Q6lWcFBKOBP1J6jRl7Xjsmc3sl8ol/MFS4vwJAnmgDVivoluyrLIbja/AnI IkDA== X-Gm-Message-State: ALoCoQlf+nQRlTwpfhFXFI6OmHvpk09lxwD/QQkH9MbMh2Peza1OVekuzz5cbLCV4aL/oCVq+rzE X-Received: by 10.66.63.71 with SMTP id e7mr19630967pas.57.1434624915052; Thu, 18 Jun 2015 03:55:15 -0700 (PDT) Received: from localhost ([122.167.70.98]) by mx.google.com with ESMTPSA id u8sm7682616pdj.46.2015.06.18.03.55.13 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Jun 2015 03:55:14 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Subject: [PATCH 03/41] clocksource: clps711x: Migrate to new 'set-state' interface Date: Thu, 18 Jun 2015 16:24:17 +0530 Message-Id: <1d4c008b44c41c5ee8f124a93e520e566b621503.1434622147.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150618_065536_827523_E93FCC45 X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -2.6 (--) Cc: Viresh Kumar , linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexander Shiyan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Migrate clps711x 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: Alexander Shiyan Signed-off-by: Viresh Kumar --- drivers/clocksource/clps711x-timer.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c index d83ec1f2fddc..cdd86e3525bb 100644 --- a/drivers/clocksource/clps711x-timer.c +++ b/drivers/clocksource/clps711x-timer.c @@ -61,11 +61,6 @@ static irqreturn_t clps711x_timer_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static void clps711x_clockevent_set_mode(enum clock_event_mode mode, - struct clock_event_device *evt) -{ -} - static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, unsigned int irq) { @@ -91,7 +86,6 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, clkevt->name = "clps711x-clockevent"; clkevt->rating = 300; clkevt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_C3STOP; - clkevt->set_mode = clps711x_clockevent_set_mode; clkevt->cpumask = cpumask_of(0); clockevents_config_and_register(clkevt, HZ, 0, 0);