Skip to content

Commit

Permalink
[media] v4l2: spi modalias is an array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent 12897dc commit 07ca418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/v4l2-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07ca418

Please sign in to comment.