summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/palmas_gpadc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/palmas_gpadc.c')
-rw-r--r--drivers/iio/adc/palmas_gpadc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/adc/palmas_gpadc.c b/drivers/iio/adc/palmas_gpadc.c
index 7c01e33be04c..3f433064618e 100644
--- a/drivers/iio/adc/palmas_gpadc.c
+++ b/drivers/iio/adc/palmas_gpadc.c
@@ -885,10 +885,8 @@ static int palmas_gpadc_probe(struct platform_device *pdev)
return -EINVAL;
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*adc));
- if (!indio_dev) {
- dev_err(&pdev->dev, "iio_device_alloc failed\n");
+ if (!indio_dev)
return -ENOMEM;
- }
adc = iio_priv(indio_dev);
adc->dev = &pdev->dev;