mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +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
@ -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 New Issue
Block a user