From patchwork Mon May 16 17:26:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 788922 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4GHRDjM020025 for ; Mon, 16 May 2011 17:27:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450Ab1EPR1M (ORCPT ); Mon, 16 May 2011 13:27:12 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:51657 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753417Ab1EPR1M (ORCPT ); Mon, 16 May 2011 13:27:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=caramon; h=Sender:Content-Type:MIME-Version:Subject:Cc:To:From:References:In-Reply-To:Message-Id:Date; bh=1r9E6t0NwJ6B4NZLSqPQZoMjB4Po69qidM49OcG0H2g=; b=cNdSGs8fNwmQLouvkY4HE+0GGDOL2ANr7jpr0Z6kOL8M6gzksEimj13qOnHDXxsQBPJQ9m9+rZH4cB7JaYib8QM5r8565ZbNxmOT27nrjenQuCigfp6m+akU8JkhMguLD9B5JBNu+vIRmWMiRTE78G2dnJQbh5loz4EbE6lW1+s=; Received: from e0022681537dd.dyn.arm.linux.org.uk ([2002:4e20:1eda:1:222:68ff:fe15:37dd] helo=rmk-PC.arm.linux.org.uk) by caramon.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QM1Yy-0002jP-Hp; Mon, 16 May 2011 18:26:36 +0100 Received: from rmk by rmk-PC.arm.linux.org.uk with local (Exim 4.72) (envelope-from ) id 1QM1Yw-0003DR-Lx; Mon, 16 May 2011 18:26:34 +0100 Date: Mon, 16 May 2011 18:26:34 +0100 Message-Id: In-Reply-To: <20110516172334.GD13659@n2100.arm.linux.org.uk> References: <20110516172334.GD13659@n2100.arm.linux.org.uk> From: Russell King - ARM Linux To: linux-arm-kernel@lists.infradead.org, John Stultz , Thomas Gleixner Cc: linux-omap@vger.kernel.org Subject: [PATCH 03/19] ARM: omap1: delete useless interrupt handler MIME-Version: 1.0 Content-Disposition: inline Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 16 May 2011 17:27:14 +0000 (UTC) The OMAP1 clocksource interrupt handler just increments a variable which otherwise isn't used, so this seems to be unnecessary. Tony Lindgren confirms, so lets remove it. Acked-by: Kevin Hilman Acked-by: Tony Lindgren Cc: linux-omap@vger.kernel.org Signed-off-by: Russell King --- arch/arm/mach-omap1/time.c | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index 6885d2f..e2c29b4 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c @@ -189,20 +189,6 @@ static __init void omap_init_mpu_timer(unsigned long rate) * --------------------------------------------------------------------------- */ -static unsigned long omap_mpu_timer2_overflows; - -static irqreturn_t omap_mpu_timer2_interrupt(int irq, void *dev_id) -{ - omap_mpu_timer2_overflows++; - return IRQ_HANDLED; -} - -static struct irqaction omap_mpu_timer2_irq = { - .name = "mpu_timer2", - .flags = IRQF_DISABLED, - .handler = omap_mpu_timer2_interrupt, -}; - static cycle_t mpu_read(struct clocksource *cs) { return ~omap_mpu_timer_read(1); @@ -247,7 +233,6 @@ static void __init omap_init_clocksource(unsigned long rate) static char err[] __initdata = KERN_ERR "%s: can't register clocksource!\n"; - setup_irq(INT_TIMER2, &omap_mpu_timer2_irq); omap_mpu_timer_start(1, ~0, 1); init_sched_clock(&cd, mpu_update_sched_clock, 32, rate);