Commit 07ca4188 authored by Alan Cox's avatar Alan Cox Committed by Mauro Carvalho Chehab

[media] v4l2: spi modalias is an array

We want to check the contents not the array itself versus NULL
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 12897dc3
...@@ -443,7 +443,7 @@ struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev, ...@@ -443,7 +443,7 @@ struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev,
BUG_ON(!v4l2_dev); BUG_ON(!v4l2_dev);
if (info->modalias) if (info->modalias[0])
request_module(info->modalias); request_module(info->modalias);
spi = spi_new_device(master, info); spi = spi_new_device(master, info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment