提交 07ca4188 编写于 作者: A Alan Cox 提交者: 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: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 12897dc3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册