aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-09-17 05:51:27 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-27 03:42:37 -0400
commit07ca418891187f97464309a0eedc266cabd948c7 (patch)
tree0934fe4e197aeadac59fd7f1a44742a41fb6f9e4 /drivers/media/v4l2-core
parent12897dc37648ac48b2aa2b3bb2d7df69625b6de5 (diff)
[media] v4l2: spi modalias is an array
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>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r--drivers/media/v4l2-core/v4l2-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c
index b6ee929f7ba5..f995dd31151d 100644
--- 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,
443 443
444 BUG_ON(!v4l2_dev); 444 BUG_ON(!v4l2_dev);
445 445
446 if (info->modalias) 446 if (info->modalias[0])
447 request_module(info->modalias); 447 request_module(info->modalias);
448 448
449 spi = spi_new_device(master, info); 449 spi = spi_new_device(master, info);