From patchwork Mon Sep 16 05:31:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2895521 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 B9F529F1BF for ; Mon, 16 Sep 2013 05:32:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4CB8201F9 for ; Mon, 16 Sep 2013 05:32:15 +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 BCC89201EC for ; Mon, 16 Sep 2013 05:32:14 +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 1VLRPo-0003BC-VY; Mon, 16 Sep 2013 05:32:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VLRPm-0001j7-QU; Mon, 16 Sep 2013 05:32:02 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VLRPk-0001iI-6X for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2013 05:32:00 +0000 Received: by mail-pa0-f41.google.com with SMTP id bj1so4948606pad.0 for ; Sun, 15 Sep 2013 22:31:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vQX6np2n0WrqFl3tjIk2dRqDlWWABnGBvy7RiDjZU4E=; b=Pa1WboSyjgN3HDu96lL52LKRminprNJl9hh3FAEgYwaOHbp0XTQIYRMiN5058LI8YR HzsXuJ86bHUnPvHnRNQMRRu6z9vjgsnj0uivVNCPILwlOmny21ZIxTIHx8QDaW5/J0Cn 2sht1N5BD6C4WqOHiKHCGN7fHnHAmQluEZZ7KNFmW/MivxYwoLcba+yRnB6soAeJnTUz v2tet2l8PGO+KRzyL7Y9Lzwo6FJi1i7EL7AFWT81GcBy1f/4cGbSg7pkb79Z0VF3BuWM tEc9jeUdpkdLIh0uoOxh7u9MkOHOIgqUakXpGgwIawo/vyjN+J1BL3ICy7u418c9AnnO vTyg== X-Gm-Message-State: ALoCoQmnwCzS+3zN/6ceb43PJs3dYtzyTugtRCNUXYPF61DsO2SEqhsqzlhm/C15toRZNUW8mt0A X-Received: by 10.66.159.132 with SMTP id xc4mr29340572pab.27.1379309497186; Sun, 15 Sep 2013 22:31:37 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id in2sm28467159pbc.37.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Sep 2013 22:31:36 -0700 (PDT) From: Chander Kashyap To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] irqchip: exynos-combiner: remove hard-coded irq_base value Date: Mon, 16 Sep 2013 11:01:22 +0530 Message-Id: <1379309482-19779-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130916_013200_333553_C34E42DD X-CRM114-Status: GOOD ( 10.92 ) X-Spam-Score: -2.6 (--) Cc: tglx@linutronix.de, kgene.kim@samsung.com, thomas.ab@samsung.com, Chander Kashyap 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: , MIME-Version: 1.0 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.9 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 Pass '0' in place of hardcoded "irq_base" value as "first_irq" parameter to "irq_domain_add_simple" in order to use linear irq domain. Signed-off-by: Chander Kashyap --- drivers/irqchip/exynos-combiner.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/irqchip/exynos-combiner.c b/drivers/irqchip/exynos-combiner.c index 4c68265..b4ed356 100644 --- a/drivers/irqchip/exynos-combiner.c +++ b/drivers/irqchip/exynos-combiner.c @@ -206,8 +206,7 @@ static unsigned int combiner_lookup_irq(int group) static void __init combiner_init(void __iomem *combiner_base, struct device_node *np, - unsigned int max_nr, - int irq_base) + unsigned int max_nr) { int i, irq; unsigned int nr_irq; @@ -221,7 +220,7 @@ static void __init combiner_init(void __iomem *combiner_base, return; } - combiner_irq_domain = irq_domain_add_simple(np, nr_irq, irq_base, + combiner_irq_domain = irq_domain_add_simple(np, nr_irq, 0, &combiner_irq_domain_ops, combiner_data); if (WARN_ON(!combiner_irq_domain)) { pr_warning("%s: irq domain init failed\n", __func__); @@ -248,7 +247,6 @@ static int __init combiner_of_init(struct device_node *np, { void __iomem *combiner_base; unsigned int max_nr = 20; - int irq_base = -1; combiner_base = of_iomap(np, 0); if (!combiner_base) { @@ -262,14 +260,7 @@ static int __init combiner_of_init(struct device_node *np, __func__, max_nr); } - /* - * FIXME: This is a hardwired COMBINER_IRQ(0,0). Once all devices - * get their IRQ from DT, remove this in order to get dynamic - * allocation. - */ - irq_base = 160; - - combiner_init(combiner_base, np, max_nr, irq_base); + combiner_init(combiner_base, np, max_nr); return 0; }