summaryrefslogtreecommitdiff
path: root/drivers/iio/trigger
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-06-06 19:27:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-06-08 10:00:58 +0100
commit78f304d06c47d600ec1a4b0995f1f4c5667a677e (patch)
treeb1744a46020d4de8ad46e77577413e1d696648d3 /drivers/iio/trigger
parente89b6747058748f0190a6852f53d65a7e79f4a9f (diff)
iio:trigger:interrupt fix formatting of rsize variable in nameiio-for-3.11b
The name includes irq_res->start which of type resource_size_t not integer. We could in theory use %pa for this but then it would be in hex and also that causes a warning about incorrect types anyway. Hence just use the irq local variable we assigned the line above. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/trigger')
-rw-r--r--drivers/iio/trigger/iio-trig-interrupt.c2
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)
irq = irq_res->start;
- trig = iio_trigger_alloc("irqtrig%d", irq_res->start);
+ trig = iio_trigger_alloc("irqtrig%d", irq);
if (!trig) {
ret = -ENOMEM;
goto error_ret;