diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-11 09:55:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-14 10:47:17 (GMT) |
commit | a20df3fe4636aaede5d0e78408812e30a7b15baf (patch) | |
tree | a318cdd3bc98b3ff5a09fadb54302bafa8449130 | |
parent | 8d1b0b4887bce5fe50a371ccb7e650dcc413bab0 (diff) | |
download | linux-fsl-qoriq-a20df3fe4636aaede5d0e78408812e30a7b15baf.tar.xz |
staging: iio: ad2s1200: Use dev_err instead of pr_err
dev_err is preferred over pr_err.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/resolver/ad2s1200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c index 76f6d65..62d3017 100644 --- a/drivers/staging/iio/resolver/ad2s1200.c +++ b/drivers/staging/iio/resolver/ad2s1200.c @@ -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)); |