From patchwork Tue Sep 24 15:59:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Krawczuk X-Patchwork-Id: 2934311 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 607D49F288 for ; Tue, 24 Sep 2013 16:00:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB0452016C for ; Tue, 24 Sep 2013 16:00:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F8C420173 for ; Tue, 24 Sep 2013 16:00:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754237Ab3IXP7m (ORCPT ); Tue, 24 Sep 2013 11:59:42 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10451 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753005Ab3IXP7l (ORCPT ); Tue, 24 Sep 2013 11:59:41 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTN000DA0F6BKB0@mailout2.samsung.com>; Wed, 25 Sep 2013 00:59:39 +0900 (KST) X-AuditID: cbfee61b-b7f776d0000016c8-b1-5241b6eb05f5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 22.9B.05832.BE6B1425; Wed, 25 Sep 2013 00:59:39 +0900 (KST) Received: from AMDC2118.DIGITAL.local ([106.120.53.16]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MTN00MYL0F42E60@mmp2.samsung.com>; Wed, 25 Sep 2013 00:59:39 +0900 (KST) From: Mateusz Krawczuk To: kgene.kim@samsung.com Cc: ben-linux@fluff.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, t.figa@samsung.com, s.nawrocki@samsung.com, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, t.stanislaws@samsung.com, Mateusz Krawczuk , Kyungmin Park Subject: [PATCH v2] ARM: SAMSUNG: S5P: If detected device tree skip irq init Date: Tue, 24 Sep 2013 17:59:23 +0200 Message-id: <1380038363-487-1-git-send-email-m.krawczuk@partner.samsung.com> X-Mailer: git-send-email 1.8.1.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLLMWRmVeSWpSXmKPExsVy+t9jQd3X2xyDDOZ81LTYOGM9q8WkdQeY LHoXXGWzONv0ht1i0+NrrBaXd81hs5hxfh+Txe3LvBan15xitlh75C67xeE37awW62e8ZrGY 1/6S1YHXo6W5h83j76oXzB6bl9R7HHy3h8mjb8sqRo/Pm+QC2KK4bFJSczLLUov07RK4Ml41 TWQv2Mde0fNzNVMD40q2LkZODgkBE4ndC/oYIWwxiQv31gPFuTiEBKYzSrx7fYkRwmlnkjh8 +ho7SBWbgLnExGebWEBsEQFJiaaGP8wgRcwCP5gkbtw9zgSSEBbwkXhw9ShQEQcHi4CqxIdu b5AwL1D4wIydTBDbFCR+Xj7BNoGRewEjwypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4EB7 Jr2DcVWDxSFGAQ5GJR7eCwkOQUKsiWXFlbmHGCU4mJVEeM03OAYJ8aYkVlalFuXHF5XmpBYf YpTmYFES5z3Yah0oJJCeWJKanZpakFoEk2Xi4JRqYDRi2m0X9HCCQj2f+sZrpucXVM6ycZh6 Zmmg+tprDPtye0xlw8vWzHi2pOBWBMeMv1HbwmdwPP0hnuYhFl7Stoft8l3nCu1j3yf8d83X sK96/L5UfVnY8RtCwS+yde60nnjq6TNjZs6Rzog1b7XZq3rjeHtlzhndyWu7GXv4UOuND84t b9a8/qHEUpyRaKjFXFScCAAoJwPJMAIAAA== 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=-5.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, 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 It prevents from executing things already handled by pinctrl-exynos driver, when device tree is available. Signed-off-by: Mateusz Krawczuk Signed-off-by: Kyungmin Park Acked-by: Tomasz Figa --- arch/arm/plat-samsung/s5p-irq-eint.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/plat-samsung/s5p-irq-eint.c b/arch/arm/plat-samsung/s5p-irq-eint.c index faa6516..ebee4dc 100644 --- a/arch/arm/plat-samsung/s5p-irq-eint.c +++ b/arch/arm/plat-samsung/s5p-irq-eint.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -202,6 +203,9 @@ static int __init s5p_init_irq_eint(void) { int irq; + if (of_have_populated_dt()) + return -ENODEV; + for (irq = IRQ_EINT(0); irq <= IRQ_EINT(15); irq++) irq_set_chip(irq, &s5p_irq_vic_eint);