[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>
This commit is contained in:
Alan Cox 2012-09-17 06:51:27 -03:00 committed by Mauro Carvalho Chehab
parent 12897dc376
commit 07ca418891

View File

@ -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);