projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d1b0b4
)
staging: iio: ad2s1200: Use dev_err instead of pr_err
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 11 Sep 2013 09:55:00 +0000
(10:55 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 14 Sep 2013 10:47:17 +0000
(11:47 +0100)
dev_err is preferred over pr_err.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1200.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/resolver/ad2s1200.c
b/drivers/staging/iio/resolver/ad2s1200.c
index 76f6d653fbeb7705ad493eb28569a086c265ca82..62d30179301fa52e0d6b9322d553371641b952e2 100644
(file)
--- 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));