]> git.hungrycats.org Git - linux/commitdiff
[PATCH] I2C: Fix i2c-core.c with DEBUG
authorJean Delvare <khali@linux-fr.org>
Mon, 19 Jan 2004 04:49:57 +0000 (20:49 -0800)
committerTom Rini <trini@kernel.crashing.org>
Mon, 19 Jan 2004 04:49:57 +0000 (20:49 -0800)
At the moment, i2c-core.c fails compiling with DEBUG. Following patch
should fix that.

drivers/i2c/i2c-core.c

index 9553fdfa9768282783de5a8d00af056d2e3af866..0570c2a80e7b37208f9cb596280be06310099662 100644 (file)
@@ -373,7 +373,7 @@ int i2c_attach_client(struct i2c_client *client)
        }
 
        DEB(dev_dbg(&adapter->dev, "client [%s] registered to adapter\n",
-                       client->dev.name));
+                       client->name));
 
        if (client->flags & I2C_CLIENT_ALLOW_USE)
                client->usage_count = 0;