From: Ebru Akagunduz Date: Mon, 21 Oct 2013 12:25:27 +0000 (+0300) Subject: Staging: iio: fix printk(KERN_ERR .. in lis3l02dq_core.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b28ca1c7c37a19e4670ccd0b96ba58d3d2d0cba5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: iio: fix printk(KERN_ERR .. in lis3l02dq_core.c Fix checkpatch.pl issues with prefer netdev_err(netdev, .. then dev_err(dev, .. then pr_err(.. to printk(KERN_ERR in lis3l02dq_core.c Signed-off-by: Ebru Akagunduz Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c b/drivers/staging/iio/accel/lis3l02dq_core.c index 2789be381f1b..735c0a34fa93 100644 --- a/drivers/staging/iio/accel/lis3l02dq_core.c +++ b/drivers/staging/iio/accel/lis3l02dq_core.c @@ -716,7 +716,7 @@ static int lis3l02dq_probe(struct spi_device *spi) lis3l02dq_channels, ARRAY_SIZE(lis3l02dq_channels)); if (ret) { - printk(KERN_ERR "failed to initialize the buffer\n"); + dev_err(&spi->dev, "failed to initialize the buffer\n"); goto error_unreg_buffer_funcs; }