]> git.hungrycats.org Git - linux/commitdiff
[PATCH] I2C: Fix bus reset in i2c-philips-par
authorJean Delvare <khali@linux-fr.org>
Fri, 23 Jan 2004 09:14:52 +0000 (01:14 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 23 Jan 2004 09:14:52 +0000 (01:14 -0800)
This patch fixes the bus reset in i2c-philips-par when it is loaded with
type!=0. For now, the reset is always made as is type==0. I guess that
this driver will be abandoned in a while, but it probably doesn't hurt
to fix that.

drivers/i2c/busses/i2c-philips-par.c

index 583efdb6001f55da57618e1ef193dad79d76e10d..f1bbb148e11a1b0be4635d13a5fe50692b548ba5 100644 (file)
@@ -184,8 +184,8 @@ static void i2c_parport_attach (struct parport *port)
                return;
        }
        /* reset hardware to sane state */
-       bit_lp_setsda(port, 1);
-       bit_lp_setscl(port, 1);
+       adapter->bit_lp_data.setsda(port, 1);
+       adapter->bit_lp_data.setscl(port, 1);
        parport_release(adapter->pdev);
 
        if (i2c_bit_add_bus(&adapter->adapter) < 0) {