summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/twl6030-gpadc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/twl6030-gpadc.c')
-rw-r--r--drivers/iio/adc/twl6030-gpadc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
index 53e1c64..0ea96c0 100644
--- a/drivers/iio/adc/twl6030-gpadc.c
+++ b/drivers/iio/adc/twl6030-gpadc.c
@@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
int irq;
int ret;
- match = of_match_device(of_twl6030_match_tbl, dev);
+ match = of_match_device(of_match_ptr(of_twl6030_match_tbl), dev);
if (!match)
return -EINVAL;
@@ -948,7 +948,9 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
indio_dev->channels = pdata->iio_channels;
indio_dev->num_channels = pdata->nchannels;
- return iio_device_register(indio_dev);
+ ret = iio_device_register(indio_dev);
+
+ return ret;
}
static int twl6030_gpadc_remove(struct platform_device *pdev)