From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754255AbbGMUsD (ORCPT ); Mon, 13 Jul 2015 16:48:03 -0400 Received: from www.linutronix.de ([62.245.132.108]:56128 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754159AbbGMUsA (ORCPT ); Mon, 13 Jul 2015 16:48:00 -0400 Message-Id: <20150713072815.310067165@linutronix.de> User-Agent: quilt/0.63-1 Date: Mon, 13 Jul 2015 20:47:52 -0000 From: Thomas Gleixner To: LKML Cc: Linus Walleij , linux-gpio@vger.kernel.org, Jiang Liu , Julia Lawall Subject: [patch 12/22] pinctrl/qcom: Use irq_set_handler_locked() References: <20150713072703.919712512@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=pinctrl-qcom-Use-irq_set_handler_locked.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 Use irq_set_handler_locked() as it avoids a redundant lookup of the irq descriptor. Search and replacement was done with coccinelle. Signed-off-by: Thomas Gleixner Cc: Jiang Liu Cc: Julia Lawall Cc: Linus Walleij Cc: linux-gpio@vger.kernel.org --- drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: tip/drivers/pinctrl/qcom/pinctrl-msm.c =================================================================== --- tip.orig/drivers/pinctrl/qcom/pinctrl-msm.c +++ tip/drivers/pinctrl/qcom/pinctrl-msm.c @@ -733,9 +733,9 @@ static int msm_gpio_irq_set_type(struct spin_unlock_irqrestore(&pctrl->lock, flags); if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) - __irq_set_handler_locked(d->irq, handle_level_irq); + irq_set_handler_locked(d, handle_level_irq); else if (type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) - __irq_set_handler_locked(d->irq, handle_edge_irq); + irq_set_handler_locked(d, handle_edge_irq); return 0; }