aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-03-24 19:38:21 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-24 19:38:21 -0400
commit1692713ee94e8d26f592a8e90b817ef66354246c (patch)
treeca34495354b1ad506e727681032caaa72ea1e590 /drivers/sh
parent65a212dd71ffd99c83ad780205932fcb96a973b6 (diff)
sh: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/maple/maple.c8
-rw-r--r--drivers/sh/superhyway/superhyway.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/sh/maple/maple.c b/drivers/sh/maple/maple.c
index 63f0de29aa14..7e1257af3d41 100644
--- a/drivers/sh/maple/maple.c
+++ b/drivers/sh/maple/maple.c
@@ -424,7 +424,7 @@ static void maple_attach_driver(struct maple_device *mdev)
424 /* Do this silently - as not a real device */ 424 /* Do this silently - as not a real device */
425 function = 0; 425 function = 0;
426 mdev->driver = &maple_dummy_driver; 426 mdev->driver = &maple_dummy_driver;
427 sprintf(mdev->dev.bus_id, "%d:0.port", mdev->port); 427 dev_set_name(&mdev->dev, "%d:0.port", mdev->port);
428 } else { 428 } else {
429 printk(KERN_INFO 429 printk(KERN_INFO
430 "Maple bus at (%d, %d): Function 0x%lX\n", 430 "Maple bus at (%d, %d): Function 0x%lX\n",
@@ -440,8 +440,8 @@ static void maple_attach_driver(struct maple_device *mdev)
440 "No maple driver found.\n"); 440 "No maple driver found.\n");
441 mdev->driver = &maple_dummy_driver; 441 mdev->driver = &maple_dummy_driver;
442 } 442 }
443 sprintf(mdev->dev.bus_id, "%d:0%d.%lX", mdev->port, 443 dev_set_name(&mdev->dev, "%d:0%d.%lX", mdev->port,
444 mdev->unit, function); 444 mdev->unit, function);
445 } 445 }
446 mdev->function = function; 446 mdev->function = function;
447 mdev->dev.release = &maple_release_device; 447 mdev->dev.release = &maple_release_device;
@@ -780,7 +780,7 @@ struct bus_type maple_bus_type = {
780EXPORT_SYMBOL_GPL(maple_bus_type); 780EXPORT_SYMBOL_GPL(maple_bus_type);
781 781
782static struct device maple_bus = { 782static struct device maple_bus = {
783 .bus_id = "maple", 783 .init_name = "maple",
784 .release = maple_bus_release, 784 .release = maple_bus_release,
785}; 785};
786 786
diff --git a/drivers/sh/superhyway/superhyway.c b/drivers/sh/superhyway/superhyway.c
index 4d0282b821b5..2d9e7f3d5611 100644
--- a/drivers/sh/superhyway/superhyway.c
+++ b/drivers/sh/superhyway/superhyway.c
@@ -22,7 +22,7 @@
22static int superhyway_devices; 22static int superhyway_devices;
23 23
24static struct device superhyway_bus_device = { 24static struct device superhyway_bus_device = {
25 .bus_id = "superhyway", 25 .init_name = "superhyway",
26}; 26};
27 27
28static void superhyway_device_release(struct device *dev) 28static void superhyway_device_release(struct device *dev)
@@ -83,7 +83,7 @@ int superhyway_add_device(unsigned long base, struct superhyway_device *sdev,
83 dev->id.id = dev->vcr.mod_id; 83 dev->id.id = dev->vcr.mod_id;
84 84
85 sprintf(dev->name, "SuperHyway device %04x", dev->id.id); 85 sprintf(dev->name, "SuperHyway device %04x", dev->id.id);
86 sprintf(dev->dev.bus_id, "%02x", superhyway_devices); 86 dev_set_name(&dev->dev, "%02x", superhyway_devices);
87 87
88 superhyway_devices++; 88 superhyway_devices++;
89 89