diff options
Diffstat (limited to 'arch/arm/plat-samsung/s5p-irq-eint.c')
| -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 @@ | |||
| 16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
| 17 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
| 18 | #include <linux/irqchip/arm-vic.h> | 18 | #include <linux/irqchip/arm-vic.h> |
| 19 | #include <linux/of.h> | ||
| 19 | 20 | ||
| 20 | #include <plat/regs-irqtype.h> | 21 | #include <plat/regs-irqtype.h> |
| 21 | 22 | ||
| @@ -202,6 +203,9 @@ static int __init s5p_init_irq_eint(void) | |||
| 202 | { | 203 | { |
| 203 | int irq; | 204 | int irq; |
| 204 | 205 | ||
| 206 | if (of_have_populated_dt()) | ||
| 207 | return -ENODEV; | ||
| 208 | |||
| 205 | for (irq = IRQ_EINT(0); irq <= IRQ_EINT(15); irq++) | 209 | for (irq = IRQ_EINT(0); irq <= IRQ_EINT(15); irq++) |
| 206 | irq_set_chip(irq, &s5p_irq_vic_eint); | 210 | irq_set_chip(irq, &s5p_irq_vic_eint); |
| 207 | 211 | ||
