summaryrefslogtreecommitdiff
path: root/drivers/iio/light/veml6040.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/veml6040.c')
-rw-r--r--drivers/iio/light/veml6040.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/light/veml6040.c b/drivers/iio/light/veml6040.c
index 71a594b2ec85..f563f9f0ee67 100644
--- a/drivers/iio/light/veml6040.c
+++ b/drivers/iio/light/veml6040.c
@@ -219,8 +219,7 @@ static int veml6040_probe(struct i2c_client *client)
indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
if (!indio_dev)
- return dev_err_probe(dev, -ENOMEM,
- "IIO device allocation failed\n");
+ return -ENOMEM;
regmap = devm_regmap_init_i2c(client, &veml6040_regmap_config);
if (IS_ERR(regmap))