Commit a20df3fe authored by Sachin Kamat's avatar Sachin Kamat Committed by Jonathan Cameron

staging: iio: ad2s1200: Use dev_err instead of pr_err

dev_err is preferred over pr_err.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 8d1b0b48
...@@ -110,8 +110,8 @@ static int ad2s1200_probe(struct spi_device *spi) ...@@ -110,8 +110,8 @@ static int ad2s1200_probe(struct spi_device *spi)
ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT, ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,
DRV_NAME); DRV_NAME);
if (ret) { if (ret) {
pr_err("%s: request gpio pin %d failed\n", dev_err(&spi->dev, "request gpio pin %d failed\n",
DRV_NAME, pins[pn]); pins[pn]);
return ret; return ret;
} }
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment