projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12897dc
)
[media] v4l2: spi modalias is an array
author
Alan Cox
<alan@linux.intel.com>
Mon, 17 Sep 2012 09:51:27 +0000
(06:51 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 27 Sep 2012 07:42:37 +0000
(
04:42
-0300)
We want to check the contents not the array itself versus NULL
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-common.c
patch
|
blob
|
history
diff --git
a/drivers/media/v4l2-core/v4l2-common.c
b/drivers/media/v4l2-core/v4l2-common.c
index
b6ee929
..
f995dd3
100644
(file)
--- a/
drivers/media/v4l2-core/v4l2-common.c
+++ b/
drivers/media/v4l2-core/v4l2-common.c
@@
-443,7
+443,7
@@
struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev,
BUG_ON(!v4l2_dev);
- if (info->modalias)
+ if (info->modalias
[0]
)
request_module(info->modalias);
spi = spi_new_device(master, info);