Skip to contentSkip to conversation

2.6.0-test3-bk35 -- drivers/i2c/i2c-keywest.c:513: error: structure has no member named `name'

DISCUSSION Miles Lane 3 participants 3 messages Aug 20, 2003 – Aug 21, 2003

Subsystems (2)
lore
Share & tools
lore

Miles Lane

author
#0 lore raw

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

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines · Miles Lane

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

Linus is currently dropping the driver updates I'm sending, hopefully this will be fixed soon. You may want to try out the tree at bk://ppc.bkbits.net/linuxppc-2.5-benh, though be warned that this is a developement tree, various things may be broken in there at a given point in time.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Miles Lane
Quoted 5 lines · Miles Lane

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

drivers/i2c/i2c-keywest.c +2 -2
diff -up -r linuxppc-2.6.0-test3/drivers/i2c/i2c-keywest.c linuxppc-2.6.0-test3-md/drivers/i2c/i2c-keywest.c
@@ -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) {
sound/ppc/keywest.c +1 -1
diff -up -r linuxppc-2.6.0-test3/sound/ppc/keywest.c linuxppc-2.6.0-test3-md/sound/ppc/keywest.c
@@ -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)