mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
[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:
parent
12897dc376
commit
07ca418891
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue