Browse Source

[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>
Alan Cox 12 years ago
parent
commit
07ca418891
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/v4l2-core/v4l2-common.c

+ 1 - 1
drivers/media/v4l2-core/v4l2-common.c

@@ -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);