From patchwork Fri Jul 5 07:39:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 2823997 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E7EF29F7D6 for ; Fri, 5 Jul 2013 07:40:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E23812015E for ; Fri, 5 Jul 2013 07:40:17 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6AE722015B for ; Fri, 5 Jul 2013 07:40:16 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uv0cO-0007FM-7e; Fri, 05 Jul 2013 07:39:48 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uv0cH-00011b-ML; Fri, 05 Jul 2013 07:39:41 +0000 Received: from mail-pd0-f171.google.com ([209.85.192.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uv0cF-00010e-8T for linux-arm-kernel@lists.infradead.org; Fri, 05 Jul 2013 07:39:39 +0000 Received: by mail-pd0-f171.google.com with SMTP id y14so1745706pdi.30 for ; Fri, 05 Jul 2013 00:39:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :mime-version:content-transfer-encoding:x-gm-message-state; bh=56n+BhNnJtAmRsZDbcGAux84M1TwiNj5Wv7TeSPjzjU=; b=fnzAPzFNCwFWDWLROx2CH1BQvh0sXIjA7obpvxlXk3ohpl2OvF/G4Yn4BNEr9rlghG RYcUKVdTegdaB+azviU/qAi10m7mEGZ+YMr9+krxTc+vPUXgsLJTJmtw3eoXSmvDPazh Z4BWDmT/lRXwU7ysmwVxmoHHUjYN1A2O57+e9FlTTQA6kRlC8uIkxJlFfcmk4KgCZk+i y2MqLiWcXZ3cThczo6B+dORfffQggjMp1W3xVmFvoVXT1EyKAUnFVE05d0+JB9YUZUgE MlKciZ9RMkpic+LYiK7I8kN63WBvyuX9WUEnKdAx70g3pPQJlEIBTsrQfxfwKc8sbGdG XApw== X-Received: by 10.68.241.135 with SMTP id wi7mr8655978pbc.88.1373009957426; Fri, 05 Jul 2013 00:39:17 -0700 (PDT) Received: from [192.168.0.100] (114-39-110-150.dynamic.hinet.net. [114.39.110.150]) by mx.google.com with ESMTPSA id xe9sm6224654pbc.21.2013.07.05.00.39.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Jul 2013 00:39:16 -0700 (PDT) Message-ID: <1373009951.14756.1.camel@phoenix> Subject: [PATCH] irqchip: nvic: Fix wrong num_ct argument for irq_alloc_domain_generic_chips() From: Axel Lin To: Thomas Gleixner Date: Fri, 05 Jul 2013 15:39:11 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQkt+5NPk9Vk2vA9YBkk3iWXWAo1KdOdyp3DiFSlMmWOO46nFLNpYeND4pQkAI4uiVQnV1Xk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130705_033939_388810_79B1A822 X-CRM114-Status: GOOD ( 10.48 ) X-Spam-Score: -1.9 (-) Cc: Arnd Bergmann , Catalin Marinas , Grant Likely , kernel@pengutronix.de, Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The third parameter of irq_alloc_domain_generic_chips() is the number of irq_chip_type instances associated with these chips rather than numbanks. Signed-off-by: Axel Lin --- drivers/irqchip/irq-nvic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c index 8d0c8b3..70bdf6e 100644 --- a/drivers/irqchip/irq-nvic.c +++ b/drivers/irqchip/irq-nvic.c @@ -84,7 +84,7 @@ static int __init nvic_of_init(struct device_node *node, return -ENOMEM; } - ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, numbanks, + ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, 1, "nvic_irq", handle_fasteoi_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE); if (ret) {