From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754496AbbG0Pzb (ORCPT ); Mon, 27 Jul 2015 11:55:31 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36088 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbbG0Pz2 (ORCPT ); Mon, 27 Jul 2015 11:55:28 -0400 Date: Mon, 27 Jul 2015 08:55:11 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, julia.lawall@lip6.fr, hpa@zytor.com, jiang.liu@linux.intel.com, realmz6@gmail.com, linux-kernel@vger.kernel.org Reply-To: realmz6@gmail.com, jiang.liu@linux.intel.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, julia.lawall@lip6.fr, mingo@kernel.org In-Reply-To: <20150713125611.731615902@linutronix.de> References: <20150713125611.731615902@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] blackfin/irq: Use irq_set_handler_locked() Git-Commit-ID: 284384442fd44f6e01a157745b5549602e6a49f4 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 Commit-ID: 284384442fd44f6e01a157745b5549602e6a49f4 Gitweb: http://git.kernel.org/tip/284384442fd44f6e01a157745b5549602e6a49f4 Author: Thomas Gleixner AuthorDate: Mon, 13 Jul 2015 20:34:57 +0000 Committer: Thomas Gleixner CommitDate: Mon, 27 Jul 2015 13:36:37 +0200 blackfin/irq: Use irq_set_handler_locked() Use irq_set_handler_locked() as it avoids a redundant lookup of the irq descriptor. Search and update was done with coccinelle. Signed-off-by: Thomas Gleixner Cc: Steven Miao Cc: Jiang Liu Cc: Julia Lawall Cc: adi-buildroot-devel@lists.sourceforge.net Link: http://lkml.kernel.org/r/20150713125611.731615902@linutronix.de Signed-off-by: Thomas Gleixner --- arch/blackfin/mach-common/ints-priority.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 332a434..2eaf83a 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c @@ -686,12 +686,12 @@ void bfin_demux_mac_status_irq(unsigned int int_err_irq, } #endif -static inline void bfin_set_irq_handler(unsigned irq, irq_flow_handler_t handle) +static inline void bfin_set_irq_handler(struct irq_data *d, irq_flow_handler_t handle) { #ifdef CONFIG_IPIPE handle = handle_level_irq; #endif - __irq_set_handler_locked(irq, handle); + irq_set_handler_locked(d, handle); } #ifdef CONFIG_GPIO_ADI @@ -803,9 +803,9 @@ static int bfin_gpio_irq_type(struct irq_data *d, unsigned int type) } if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING)) - bfin_set_irq_handler(irq, handle_edge_irq); + bfin_set_irq_handler(d, handle_edge_irq); else - bfin_set_irq_handler(irq, handle_level_irq); + bfin_set_irq_handler(d, handle_level_irq); return 0; }