[PATCH 2/4] TM6000: Fix build warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Cc: Michel Ludwig <michel.ludwig@xxxxxxxxx>
Cc: Stefan Ringel <stefan.ringel@xxxxxxxx>
---
 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
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux