diff options
author | Mateusz Krawczuk <m.krawczuk@partner.samsung.com> | 2013-10-07 16:24:22 +0200 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-12-01 23:17:57 +0100 |
commit | bffd649d4377a855dff1cb8877385a5657520251 (patch) | |
tree | 1a886d159d53b1b83a390adb36c6313d5e0a07f1 /arch/arm/plat-samsung | |
parent | Linux 3.13-rc1 (diff) | |
download | linux-bffd649d4377a855dff1cb8877385a5657520251.tar.xz linux-bffd649d4377a855dff1cb8877385a5657520251.zip |
ARM: SAMSUNG: if detected device tree skip irq init for S5P
It prevents from executing things already handled by pinctrl-exynos
driver, when device tree is available.
Signed-off-by: Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/s5p-irq-eint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/s5p-irq-eint.c b/arch/arm/plat-samsung/s5p-irq-eint.c index faa651602780..ebee4dc11a94 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); |