Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbbG0GN5 (ORCPT ); Mon, 27 Jul 2015 02:13:57 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58464 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbbG0GNz (ORCPT ); Mon, 27 Jul 2015 02:13:55 -0400 Date: Sun, 26 Jul 2015 23:12:43 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: hskinnemoen@gmail.com, hpa@zytor.com, egtvedt@samfundet.no, jiang.liu@linux.intel.com, Julia.Lawall@lip6.fr, linux-kernel@vger.kernel.org, tglx@linutronix.de, rmk+kernel@arm.linux.org.uk, mingo@kernel.org Reply-To: rmk+kernel@arm.linux.org.uk, tglx@linutronix.de, mingo@kernel.org, egtvedt@samfundet.no, jiang.liu@linux.intel.com, Julia.Lawall@lip6.fr, linux-kernel@vger.kernel.org, hpa@zytor.com, hskinnemoen@gmail.com In-Reply-To: <20150713100606.351640193@linutronix.de> References: <20150713100606.351640193@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] avr32/at32ap: Consolidate chained IRQ handler install/remove Git-Commit-ID: 4365160def95ef2f5da9b5cc5660e5747e5e1956 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2094 Lines: 54 Commit-ID: 4365160def95ef2f5da9b5cc5660e5747e5e1956 Gitweb: http://git.kernel.org/tip/4365160def95ef2f5da9b5cc5660e5747e5e1956 Author: Thomas Gleixner AuthorDate: Mon, 13 Jul 2015 20:31:09 +0000 Committer: Thomas Gleixner CommitDate: Sun, 26 Jul 2015 11:47:25 +0200 avr32/at32ap: Consolidate chained IRQ handler install/remove Chained irq handlers usually set up handler data as well. We now have a function to set both under irq_desc->lock. Replace the two calls with one. Search and conversion was done with coccinelle. Reported-by: Russell King Signed-off-by: Thomas Gleixner Acked-by: Hans-Christian Egtvedt Cc: Haavard Skinnemoen Cc: Jiang Liu Cc: Julia Lawall Link: http://lkml.kernel.org/r/20150713100606.351640193@linutronix.de Signed-off-by: Thomas Gleixner --- arch/avr32/mach-at32ap/pio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 903c7d8..6c7035a 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c @@ -312,7 +312,6 @@ gpio_irq_setup(struct pio_device *pio, int irq, int gpio_irq) unsigned i; irq_set_chip_data(irq, pio); - irq_set_handler_data(irq, (void *)gpio_irq); for (i = 0; i < 32; i++, gpio_irq++) { irq_set_chip_data(gpio_irq, pio); @@ -320,7 +319,8 @@ gpio_irq_setup(struct pio_device *pio, int irq, int gpio_irq) handle_simple_irq); } - irq_set_chained_handler(irq, gpio_irq_handler); + irq_set_chained_handler_and_data(irq, gpio_irq_handler, + (void *)gpio_irq); } /*--------------------------------------------------------------------------*/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/