diff options
-rw-r--r-- | drivers/iio/trigger/iio-trig-interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/trigger/iio-trig-interrupt.c b/drivers/iio/trigger/iio-trig-interrupt.c index 84bf397ec465..02577ec54c6b 100644 --- a/drivers/iio/trigger/iio-trig-interrupt.c +++ b/drivers/iio/trigger/iio-trig-interrupt.c | |||
@@ -50,7 +50,7 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev) | |||
50 | 50 | ||
51 | irq = irq_res->start; | 51 | irq = irq_res->start; |
52 | 52 | ||
53 | trig = iio_trigger_alloc("irqtrig%d", irq_res->start); | 53 | trig = iio_trigger_alloc("irqtrig%d", irq); |
54 | if (!trig) { | 54 | if (!trig) { |
55 | ret = -ENOMEM; | 55 | ret = -ENOMEM; |
56 | goto error_ret; | 56 | goto error_ret; |