* Re: 2.6.0-test3-bk35 -- drivers/i2c/i2c-keywest.c:513: error: structure has no member named `name'
2003-08-20 21:28 2.6.0-test3-bk35 -- drivers/i2c/i2c-keywest.c:513: error: structure has no member named `name' Miles Lane
2003-08-21 0:27 ` Benjamin Herrenschmidt
@ 2003-08-21 9:12 ` Michel Dänzer
1 sibling, 0 replies; 3+ messages in thread
From: Michel Dänzer @ 2003-08-21 9:12 UTC (permalink / raw)
To: Miles Lane; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
On Wed, 2003-08-20 at 23:28, Miles Lane wrote:
> CC drivers/i2c/i2c-keywest.o
> drivers/i2c/i2c-keywest.c: In function `create_iface':
> drivers/i2c/i2c-keywest.c:513: error: structure has no member named `name'
> drivers/i2c/i2c-keywest.c:526: error: structure has no member named `name'
> make[2]: *** [drivers/i2c/i2c-keywest.o] Error 1
FWIW, this patch fixes this and a similar build failure.
--
Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
[-- Attachment #2: linuxppc-2.6.0-test3.diff --]
[-- Type: text/x-patch, Size: 1415 bytes --]
diff -up -r linuxppc-2.6.0-test3/drivers/i2c/i2c-keywest.c linuxppc-2.6.0-test3-md/drivers/i2c/i2c-keywest.c
--- linuxppc-2.6.0-test3/drivers/i2c/i2c-keywest.c 2003-08-20 10:26:31.000000000 +0200
+++ linuxppc-2.6.0-test3-md/drivers/i2c/i2c-keywest.c 2003-08-20 14:48:23.000000000 +0200
@@ -510,7 +510,7 @@ create_iface(struct device_node* np)
struct keywest_chan* chan = &iface->channels[i];
u8 addr;
- sprintf(chan->adapter.dev.name, "%s %d", np->parent->name, i);
+ sprintf(chan->adapter.name, "%s %d", np->parent->name, i);
chan->iface = iface;
chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS;
@@ -523,7 +523,7 @@ create_iface(struct device_node* np)
rc = i2c_add_adapter(&chan->adapter);
if (rc) {
printk("i2c-keywest.c: Adapter %s registration failed\n",
- chan->adapter.dev.name);
+ chan->adapter.name);
i2c_set_adapdata(&chan->adapter, NULL);
}
if (probe) {
diff -up -r linuxppc-2.6.0-test3/sound/ppc/keywest.c linuxppc-2.6.0-test3-md/sound/ppc/keywest.c
--- linuxppc-2.6.0-test3/sound/ppc/keywest.c 2003-08-20 10:27:44.000000000 +0200
+++ linuxppc-2.6.0-test3-md/sound/ppc/keywest.c 2003-08-20 14:57:28.000000000 +0200
@@ -50,7 +50,7 @@ struct i2c_driver keywest_driver = {
#ifndef i2c_device_name
-#define i2c_device_name(x) ((x)->dev.name)
+#define i2c_device_name(x) ((x)->name)
#endif
static int keywest_attach_adapter(struct i2c_adapter *adapter)
^ permalink raw reply [flat|nested] 3+ messages in thread