diff options
author | Alan Cox <alan@linux.intel.com> | 2012-09-17 06:51:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-27 04:42:37 -0300 |
commit | 07ca418891187f97464309a0eedc266cabd948c7 (patch) | |
tree | 0934fe4e197aeadac59fd7f1a44742a41fb6f9e4 /drivers/media/v4l2-core/v4l2-common.c | |
parent | 12897dc37648ac48b2aa2b3bb2d7df69625b6de5 (diff) | |
download | linux-stable-07ca418891187f97464309a0eedc266cabd948c7.tar.gz linux-stable-07ca418891187f97464309a0eedc266cabd948c7.tar.bz2 linux-stable-07ca418891187f97464309a0eedc266cabd948c7.zip |
[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/v4l2-common.c')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-common.c | 2 |
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, BUG_ON(!v4l2_dev); - if (info->modalias) + if (info->modalias[0]) request_module(info->modalias); spi = spi_new_device(master, info); |