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:
3f845f3
)
[media] drivers: media: i2c : s5c73m3: Replace dev_err with pr_err
author
Tapasweni Pathak
<
[email protected]
>
Tue, 24 Feb 2015 04:47:32 +0000
(
01:47
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 3 Mar 2015 14:16:36 +0000
(11:16 -0300)
Replace dev_err statement with pr_err to fix null dereference.
Found by Coccinelle.
Signed-off-by: Tapasweni Pathak <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/s5c73m3/s5c73m3-spi.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/s5c73m3/s5c73m3-spi.c
b/drivers/media/i2c/s5c73m3/s5c73m3-spi.c
index f60b265b4da15a949701fac80c7de4927e0a49fd..63eb19093381d2abad3a39871167c7c237051be5 100644
(file)
--- 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;
}