From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751260AbbG0GNp (ORCPT ); Mon, 27 Jul 2015 02:13:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58452 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbbG0GNo (ORCPT ); Mon, 27 Jul 2015 02:13:44 -0400 Date: Sun, 26 Jul 2015 23:13:23 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: jiang.liu@linux.intel.com, hskinnemoen@gmail.com, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, egtvedt@samfundet.no Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, hskinnemoen@gmail.com, jiang.liu@linux.intel.com, egtvedt@samfundet.no, tglx@linutronix.de, hpa@zytor.com In-Reply-To: <20150713100606.527106283@linutronix.de> References: <20150713100606.527106283@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] avr32/irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc Git-Commit-ID: df6e23ae62d46a524ba3db95a201904a01419bdc 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: df6e23ae62d46a524ba3db95a201904a01419bdc Gitweb: http://git.kernel.org/tip/df6e23ae62d46a524ba3db95a201904a01419bdc Author: Jiang Liu AuthorDate: Mon, 13 Jul 2015 20:31:12 +0000 Committer: Thomas Gleixner CommitDate: Sun, 26 Jul 2015 11:47:25 +0200 avr32/irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Signed-off-by: Jiang Liu Acked-by: Hans-Christian Egtvedt Cc: Haavard Skinnemoen Link: http://lkml.kernel.org/r/20150713100606.527106283@linutronix.de Signed-off-by: Thomas Gleixner --- arch/avr32/mach-at32ap/pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 6c7035a..157a5e0 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c @@ -286,7 +286,7 @@ static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) struct pio_device *pio = irq_desc_get_chip_data(desc); unsigned gpio_irq; - gpio_irq = (unsigned) irq_get_handler_data(irq); + gpio_irq = (unsigned) irq_desc_get_handler_data(desc); for (;;) { u32 isr;