diff options
-rw-r--r-- | drivers/mca/mca-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mca/mca-bus.c b/drivers/mca/mca-bus.c index ef2dbfe74714..ada5ebbaa255 100644 --- a/drivers/mca/mca-bus.c +++ b/drivers/mca/mca-bus.c | |||
@@ -110,7 +110,7 @@ int __init mca_register_device(int bus, struct mca_device *mca_dev) | |||
110 | 110 | ||
111 | mca_dev->dev.parent = &mca_bus->dev; | 111 | mca_dev->dev.parent = &mca_bus->dev; |
112 | mca_dev->dev.bus = &mca_bus_type; | 112 | mca_dev->dev.bus = &mca_bus_type; |
113 | sprintf (mca_dev->dev.bus_id, "%02d:%02X", bus, mca_dev->slot); | 113 | dev_set_name(&mca_dev->dev, "%02d:%02X", bus, mca_dev->slot); |
114 | mca_dev->dma_mask = mca_bus->default_dma_mask; | 114 | mca_dev->dma_mask = mca_bus->default_dma_mask; |
115 | mca_dev->dev.dma_mask = &mca_dev->dma_mask; | 115 | mca_dev->dev.dma_mask = &mca_dev->dma_mask; |
116 | mca_dev->dev.coherent_dma_mask = mca_dev->dma_mask; | 116 | mca_dev->dev.coherent_dma_mask = mca_dev->dma_mask; |
@@ -151,7 +151,7 @@ struct mca_bus * __devinit mca_attach_bus(int bus) | |||
151 | if (!mca_bus) | 151 | if (!mca_bus) |
152 | return NULL; | 152 | return NULL; |
153 | 153 | ||
154 | sprintf(mca_bus->dev.bus_id,"mca%d",bus); | 154 | dev_set_name(&mca_bus->dev, "mca%d", bus); |
155 | sprintf(mca_bus->name,"Host %s MCA Bridge", bus ? "Secondary" : "Primary"); | 155 | sprintf(mca_bus->name,"Host %s MCA Bridge", bus ? "Secondary" : "Primary"); |
156 | if (device_register(&mca_bus->dev)) { | 156 | if (device_register(&mca_bus->dev)) { |
157 | kfree(mca_bus); | 157 | kfree(mca_bus); |