changeset 3887:f4464986d52e

efm32/gpio: added missing ifdef
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Tue, 17 Apr 2018 13:34:00 +0200
parents 3d7023e23ce9
children 96fffd8fc921
files arch/efm32/drivers/gpio/gpio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/arch/efm32/drivers/gpio/gpio.c	Sun Apr 22 21:44:19 2018 +0200
+++ b/arch/efm32/drivers/gpio/gpio.c	Tue Apr 17 13:34:00 2018 +0200
@@ -778,11 +778,13 @@
   dev_request_queue_init(&pv->queue);
 #endif
 
+#ifdef CONFIG_DEVICE_IRQ
   device_irq_source_init(dev, pv->src, GPIO_SRC_IRQ_COUNT,
                     &efm32_gpio_source_process);
 
   if (device_irq_source_link(dev, pv->src, GPIO_SRC_IRQ_COUNT, -1))
     goto err_clk;
+#endif
 
 #ifdef CONFIG_DRIVER_EFM32_GPIO_ICU
   device_irq_sink_init(dev, pv->sink, CONFIG_DRIVER_EFM32_GPIO_IRQ_COUNT,