diff options
author | Ebru Akagunduz <ebru.akagunduz@gmail.com> | 2013-10-21 15:25:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-27 06:59:35 -0700 |
commit | b28ca1c7c37a19e4670ccd0b96ba58d3d2d0cba5 (patch) | |
tree | 9cb593d8572ce24ba142927fb2fb31e79d1dea50 /drivers/staging/iio | |
parent | 5c36d5ae2eb4bba0de17e6d4a15b249ab27bb5e6 (diff) | |
download | op-kernel-dev-b28ca1c7c37a19e4670ccd0b96ba58d3d2d0cba5.zip op-kernel-dev-b28ca1c7c37a19e4670ccd0b96ba58d3d2d0cba5.tar.gz |
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 <ebru.akagunduz@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/accel/lis3l02dq_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c b/drivers/staging/iio/accel/lis3l02dq_core.c index 2789be3..735c0a3 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; } |