patch-2.3.36 linux/drivers/char/saa7111.c

Next file: linux/drivers/char/saa7185.c
Previous file: linux/drivers/char/saa7110.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.35/linux/drivers/char/saa7111.c linux/drivers/char/saa7111.c
@@ -70,7 +70,6 @@
 static int saa7111_write(struct saa7111 *dev, unsigned char subaddr, unsigned char data)
 {
 	int ack;
-	unsigned long flags;
 
 	LOCK_I2C_BUS(dev->bus);
 	i2c_start(dev->bus);
@@ -85,9 +84,8 @@
 
 static int saa7111_write_block(struct saa7111 *dev, unsigned const char *data, unsigned int len)
 {
-	int ack;
+	int ack = 0;
 	unsigned subaddr;
-	unsigned long flags;
 
 	while (len > 1) {
 		LOCK_I2C_BUS(dev->bus);
@@ -110,7 +108,6 @@
 static int saa7111_read(struct saa7111 *dev, unsigned char subaddr)
 {
 	int data;
-	unsigned long flags;
 
 	LOCK_I2C_BUS(dev->bus);
 	i2c_start(dev->bus);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)