diff options
author | Tapasweni Pathak <tapaswenipathak@gmail.com> | 2015-02-24 01:47:32 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-03-03 11:16:36 -0300 |
commit | 48205533bab78ffb504af3baf783c8f46942c16d (patch) | |
tree | 353c2ed8cdd2b3684824b99fc549794d8b9b02fc /drivers/media/i2c | |
parent | 3f845f3c4cf4212bb4cbc8c06344d095cbb16bdd (diff) | |
download | linux-48205533bab78ffb504af3baf783c8f46942c16d.tar.gz linux-48205533bab78ffb504af3baf783c8f46942c16d.tar.bz2 linux-48205533bab78ffb504af3baf783c8f46942c16d.zip |
[media] drivers: media: i2c : s5c73m3: Replace dev_err with pr_err
Replace dev_err statement with pr_err to fix null dereference.
Found by Coccinelle.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/s5c73m3/s5c73m3-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-spi.c b/drivers/media/i2c/s5c73m3/s5c73m3-spi.c index f60b265b4da1..63eb19093381 100644 --- a/drivers/media/i2c/s5c73m3/s5c73m3-spi.c +++ b/drivers/media/i2c/s5c73m3/s5c73m3-spi.c @@ -52,7 +52,7 @@ static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len, xfer.rx_buf = addr; if (spi_dev == NULL) { - dev_err(&spi_dev->dev, "SPI device is uninitialized\n"); + pr_err("SPI device is uninitialized\n"); return -ENODEV; } |