Skip to contentSkip to conversation

v4l2: spi modalias is an array

PATCH New Alan Cox 1 participant 1 message Sep 17, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 v4l2: spi modalias is an array

From: Alan Cox <[email protected]>

We want to check the contents not the array itself versus NULL

---

 drivers/media/v4l2-core/v4l2-common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-common.c +1 -1
index 105f88c..415874f 100644
@@ -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);