[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1380038363-487-1-git-send-email-m.krawczuk@partner.samsung.com>
Date: Tue, 24 Sep 2013 17:59:23 +0200
From: Mateusz Krawczuk <m.krawczuk@...tner.samsung.com>
To: kgene.kim@...sung.com
Cc: ben-linux@...ff.org, linux@....linux.org.uk,
linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
t.figa@...sung.com, s.nawrocki@...sung.com,
m.szyprowski@...sung.com, b.zolnierkie@...sung.com,
t.stanislaws@...sung.com,
Mateusz Krawczuk <m.krawczuk@...tner.samsung.com>,
Kyungmin Park <kyungmin.park@...sung.com>
Subject: [PATCH v2] ARM: SAMSUNG: S5P: If detected device tree skip irq init
It prevents from executing things already handled by pinctrl-exynos driver,
when device tree is available.
Signed-off-by: Mateusz Krawczuk <m.krawczuk@...tner.samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@...sung.com>
---
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 <linux/device.h>
#include <linux/gpio.h>
#include <linux/irqchip/arm-vic.h>
+#include <linux/of.h>
#include <plat/regs-irqtype.h>
@@ -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);
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists