Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754084AbbK0MwH (ORCPT ); Fri, 27 Nov 2015 07:52:07 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:33532 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788AbbK0MwF (ORCPT ); Fri, 27 Nov 2015 07:52:05 -0500 From: Alexander Kuleshov To: David Howells Cc: Koichi Yasutake , linux-am33-list@redhat.com, linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH] mn10300: use asb2346_fpga_{mask,irq}() instead of direct calculation Date: Fri, 27 Nov 2015 18:49:35 +0600 Message-Id: <1448628575-5503-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.6.2.485.g1bc8fea Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 30 Signed-off-by: Alexander Kuleshov --- arch/mn10300/unit-asb2364/irq-fpga.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/mn10300/unit-asb2364/irq-fpga.c b/arch/mn10300/unit-asb2364/irq-fpga.c index 073e2cc..9772598 100644 --- a/arch/mn10300/unit-asb2364/irq-fpga.c +++ b/arch/mn10300/unit-asb2364/irq-fpga.c @@ -31,10 +31,8 @@ static void asb2364_fpga_ack(struct irq_data *d) static void asb2364_fpga_mask_ack(struct irq_data *d) { - ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0001; - SyncExBus(); - ASB2364_FPGA_REG_IRQ(d->irq - NR_CPU_IRQS) = 0x0001; - SyncExBus(); + asb2364_fpga_mask(d); + asb2364_fpga_irq(d); } static void asb2364_fpga_unmask(struct irq_data *d) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/