Commit 125a6aad authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Eliminate one use of struct device name field.

parent 272069b7
...@@ -62,7 +62,6 @@ ocp_setup_dev(struct ocp_def *odef, unsigned int index) ...@@ -62,7 +62,6 @@ ocp_setup_dev(struct ocp_def *odef, unsigned int index)
(unsigned long) dev->paddr, dev->irq, dev->pm); (unsigned long) dev->paddr, dev->irq, dev->pm);
/* now put in global tree */ /* now put in global tree */
strcpy(dev->dev.name, dev->name);
sprintf(dev->dev.bus_id, "%d", index); sprintf(dev->dev.bus_id, "%d", index);
dev->dev.parent = ocp_bus; dev->dev.parent = ocp_bus;
dev->dev.bus = &ocp_bus_type; dev->dev.bus = &ocp_bus_type;
...@@ -80,7 +79,7 @@ static struct device * __devinit ocp_alloc_primary_bus(void) ...@@ -80,7 +79,7 @@ static struct device * __devinit ocp_alloc_primary_bus(void)
return NULL; return NULL;
memset(b, 0, sizeof(struct device)); memset(b, 0, sizeof(struct device));
strcpy(b->bus_id, "ocp"); strcpy(b->bus_id, "ocp");
strcpy(b->name, "Host/OCP Bridge");
device_register(b); device_register(b);
return b; return b;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment