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: 3060151 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9E118BF924 for ; Thu, 17 Oct 2013 11:05:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1A6A20456 for ; Thu, 17 Oct 2013 11:05:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44A6F20455 for ; Thu, 17 Oct 2013 11:05:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753591Ab3JQLFc (ORCPT ); Thu, 17 Oct 2013 07:05:32 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:51365 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343Ab3JQLFc (ORCPT ); Thu, 17 Oct 2013 07:05:32 -0400 Received: by mail-pa0-f41.google.com with SMTP id bj1so2566364pad.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=lBQyUZPJE+FGt7vcUWEVqVMSVyeIc0GEkfY+ka8ff/eNXYQY8rK8fLgKjHnYVZGHSu y2fg6Jt0Wny2e8S9wZW/xq+DIFKFzaYvFmtnu5TXN6Bmkga3sWockptBiH0MxkrlJmGT wWnZOxtF1ULIV+KR/pQ3hl8ooZMUFawrdcHcYhQAgk4Y8YaQQrbRlE4tncSxrl6Eg7V1 0aZ8nQNfTDE2cv6SWaoeC0zO3OfX43lI654PFux+ff8d08KPcIMIY7QrYRv2Oj7l6sbE 69AYju+bZiK4m5sGP/eCNL2u2G0xpU60+NTsP9iurrKRC+hJBWbFdGsN3IbK6AKSH4Kl Je+w== X-Gm-Message-State: ALoCoQlTzhg54Qnk4WQDiG8v+ILwiCziY/pwX150LyFAUAskgUm8zwFYsVO8NwOHJ0HCWDbcgpTt 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 Cc: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, tglx@linutronix.de, sachin.kamat@linaro.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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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;