sh: struct device - replace bus_id with dev_name(), dev_set_name()
[safe/jmp/linux-2.6] / drivers / sh / superhyway / superhyway.c
index 4d0282b..2d9e7f3 100644 (file)
@@ -22,7 +22,7 @@
 static int superhyway_devices;
 
 static struct device superhyway_bus_device = {
-       .bus_id = "superhyway",
+       .init_name = "superhyway",
 };
 
 static void superhyway_device_release(struct device *dev)
@@ -83,7 +83,7 @@ int superhyway_add_device(unsigned long base, struct superhyway_device *sdev,
        dev->id.id              = dev->vcr.mod_id;
 
        sprintf(dev->name, "SuperHyway device %04x", dev->id.id);
-       sprintf(dev->dev.bus_id, "%02x", superhyway_devices);
+       dev_set_name(&dev->dev, "%02x", superhyway_devices);
 
        superhyway_devices++;