From patchwork Thu Oct 17 11:04:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3060161 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 30CAB9F3E2 for ; Thu, 17 Oct 2013 11:06:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13EFB20166 for ; Thu, 17 Oct 2013 11:06:13 +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 5EC0320455 for ; Thu, 17 Oct 2013 11:06:08 +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 1VWlOz-0000Gq-1W; Thu, 17 Oct 2013 11:06:01 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWlOw-0000T0-IP; Thu, 17 Oct 2013 11:05:58 +0000 Received: from mail-pb0-f41.google.com ([209.85.160.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWlOt-0000SS-NI for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2013 11:05:56 +0000 Received: by mail-pb0-f41.google.com with SMTP id rp16so2148633pbb.14 for ; Thu, 17 Oct 2013 04:05:31 -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=85pB8o5f47jVVHr3CUtvzB+RTB/bZ7Ze1bqJTJ4crIA=; b=JMRjn4mZBlr3kuGrjkdKfMsck7lXxGB7xPTl8qb2TC5OMD9NeFwYegTBiKHQZlULCY dbQIy0uAO/75x7zgoDceaR+KixRqnXgy3TTKqbs7WLl2R9Lg6vlyiJXhISgmIjlNOPjM tSLa0ScIWs4BHXpjXSX1QOUUY6AurUoR6VIWpgMHRr2uT/DwIkX8HiHokkkpi+2wiiHP LvPDxwZr++jU28IqP1fyrkA+U1dGoPEK7Av5GKOW7sj6Mu9EX9/HzMngHIUzzwABuFzZ AL6QCBDcrHRlCs6p2h/t3UHkYqSO/2G5ZGQsvIMNEHpZXcBxVv8COTwH1hARnNLudy1J qY6A== X-Gm-Message-State: ALoCoQkfgbJx46SJhGd78V2zhwpcqELfCDWq0iPJlxPznx5boZaY+zvDKyBZhIrlbBKDTybmcESP X-Received: by 10.66.162.167 with SMTP id yb7mr8670931pab.16.1382007931654; Thu, 17 Oct 2013 04:05:31 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id be1sm31522003pbb.28.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Oct 2013 04:05:31 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/1] irqchip: exynos: Remove hardcoded irqbase Date: Thu, 17 Oct 2013 16:34:41 +0530 Message-Id: <1382007881-1161-1-git-send-email-sachin.kamat@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-20131017_070555_888628_D0F9351B X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, tglx@linutronix.de, kgene.kim@samsung.com, 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: , 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.6 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 Now that Exynos platforms are DT only, hard-coded irqbase is not necessary. Signed-off-by: Sachin Kamat --- drivers/irqchip/exynos-combiner.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/irqchip/exynos-combiner.c b/drivers/irqchip/exynos-combiner.c index 868ed40..08538df 100644 --- a/drivers/irqchip/exynos-combiner.c +++ b/drivers/irqchip/exynos-combiner.c @@ -207,7 +207,7 @@ static int __init combiner_of_init(struct device_node *np, { void __iomem *combiner_base; unsigned int max_nr = 20; - int irq_base = -1; + int irq_base = 0; combiner_base = of_iomap(np, 0); if (!combiner_base) { @@ -221,13 +221,6 @@ 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); return 0;