From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2001:470:1f0b:db:abcd:42:0:1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 391531A0206 for ; Tue, 14 Jul 2015 06:50:15 +1000 (AEST) Message-Id: <20150713135739.083856550@linutronix.de> Date: Mon, 13 Jul 2015 20:50:01 -0000 From: Thomas Gleixner To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Michael Ellerman , Russell King , Julia Lawall Subject: [patch 01/20] powerpc/media5200: Consolidate chained IRQ handler install/remove References: <20150713135648.540293392@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/platforms/52xx/media5200.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: tip/arch/powerpc/platforms/52xx/media5200.c =================================================================== --- tip.orig/arch/powerpc/platforms/52xx/media5200.c +++ tip/arch/powerpc/platforms/52xx/media5200.c @@ -179,8 +179,8 @@ static void __init media5200_init_irq(vo goto out; pr_debug("%s: allocated irqhost\n", __func__); - irq_set_handler_data(cascade_virq, &media5200_irq); - irq_set_chained_handler(cascade_virq, media5200_irq_cascade); + irq_set_chained_handler_and_data(cascade_virq, media5200_irq_cascade, + &media5200_irq); return;