From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753381AbbGMUcK (ORCPT ); Mon, 13 Jul 2015 16:32:10 -0400 Received: from www.linutronix.de ([62.245.132.108]:55542 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752993AbbGMUbR (ORCPT ); Mon, 13 Jul 2015 16:31:17 -0400 Message-Id: <20150713100606.351640193@linutronix.de> User-Agent: quilt/0.63-1 Date: Mon, 13 Jul 2015 20:31:09 -0000 From: Thomas Gleixner To: LKML Cc: Haavard Skinnemoen , Hans-Christian Egtvedt , Jiang Liu , Russell King , Julia Lawall Subject: [patch 1/3] avr32/at32ap: Consolidate chained IRQ handler install/remove References: <20150713100425.719759717@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=avr32-at32ap-Consolidate-chained-IRQ-handler-install.patch X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Julia Lawall Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt --- arch/avr32/mach-at32ap/pio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: tip/arch/avr32/mach-at32ap/pio.c =================================================================== --- tip.orig/arch/avr32/mach-at32ap/pio.c +++ tip/arch/avr32/mach-at32ap/pio.c @@ -312,7 +312,6 @@ gpio_irq_setup(struct pio_device *pio, i 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, i handle_simple_irq); } - irq_set_chained_handler(irq, gpio_irq_handler); + irq_set_chained_handler_and_data(irq, gpio_irq_handler, + (void *)gpio_irq); } /*--------------------------------------------------------------------------*/