On 09/11/13 10:55, Sachin Kamat wrote: > dev_err is preferred over pr_err. > > Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> Applied > --- > drivers/staging/iio/resolver/ad2s1200.c | 4 ++-- > 1 file 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)); > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html