Skip to content

Commit

Permalink
ARM: SAMSUNG: if detected device tree skip irq init for S5P
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mateusz Krawczuk authored and Kukjin Kim committed Dec 1, 2013
1 parent 6ce4eac commit bffd649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/plat-samsung/s5p-irq-eint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit bffd649

Please sign in to comment.