提交 a20df3fe 编写于 作者: S Sachin Kamat 提交者: Jonathan Cameron

staging: iio: ad2s1200: Use dev_err instead of pr_err

dev_err is preferred over pr_err.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 8d1b0b48
......@@ -110,8 +110,8 @@ static int ad2s1200_probe(struct spi_device *spi)
ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,
DRV_NAME);
if (ret) {
pr_err("%s: request gpio pin %d failed\n",
DRV_NAME, pins[pn]);
dev_err(&spi->dev, "request gpio pin %d failed\n",
pins[pn]);
return ret;
}
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册