public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] v4l2: spi modalias is an array
@ 2012-09-17 10:51 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2012-09-17 10:51 UTC (permalink / raw)
  To: linux-media

From: Alan Cox <alan@linux.intel.com>

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

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/media/v4l2-core/v4l2-common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c
index 105f88c..415874f 100644
--- a/drivers/media/v4l2-core/v4l2-common.c
+++ b/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);


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-17 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17 10:51 [PATCH] v4l2: spi modalias is an array Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox