[PATCH 2/4] TM6000: Fix build warning

Jean Delvare khali at linux-fr.org
Wed Oct 13 09:06:58 UTC 2010


Signed-off-by: Jean Delvare <khali at linux-fr.org>
Cc: Michel Ludwig <michel.ludwig at gmail.com>
Cc: Stefan Ringel <stefan.ringel at arcor.de>
---
 drivers/staging/tm6000/tm6000-core.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.36-rc7.orig/drivers/staging/tm6000/tm6000-core.c	2010-09-21 11:07:29.000000000 +0200
+++ linux-2.6.36-rc7/drivers/staging/tm6000/tm6000-core.c	2010-10-13 10:04:09.000000000 +0200
@@ -188,6 +188,8 @@ void tm6000_set_fourcc_format(struct tm6
 
 int tm6000_init_analog_mode(struct tm6000_core *dev)
 {
+	struct v4l2_frequency f;
+
 	if (dev->dev_type == TM6010) {
 		int val;
 
@@ -326,7 +328,6 @@ int tm6000_init_analog_mode(struct tm600
 	/* Tuner firmware can now be loaded */
 
 	/*FIXME: Hack!!! */
-	struct v4l2_frequency f;
 	mutex_lock(&dev->lock);
 	f.frequency = dev->freq;
 	v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f);


-- 
Jean Delvare



More information about the devel mailing list