]> git.hungrycats.org Git - linux/commitdiff
[PATCH] I2C: IBM IIC compile fix
authorEugene Surovegin <ebs@ebshome.net>
Wed, 14 Jan 2004 03:12:07 +0000 (19:12 -0800)
committerTom Rini <trini@kernel.crashing.org>
Wed, 14 Jan 2004 03:12:07 +0000 (19:12 -0800)
please apply this trivial one-liner. It fixes compilation of IBM IIC
driver.

drivers/i2c/busses/i2c-ibm_iic.c

index fb4cf41fb7bc9bb80fc27025c1e0fb875876ec60..639ae64f74bd6f2bb7d262310d6e5645ae1c18cf 100644 (file)
@@ -601,7 +601,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){
        
        /* Register it with i2c layer */
        adap = &dev->adap;
-       strcpy(adap->dev.name, "IBM IIC");
+       strcpy(adap->name, "IBM IIC");
        i2c_set_adapdata(adap, dev);
        adap->id = I2C_HW_OCP | iic_algo.id;
        adap->algo = &iic_algo;