aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-01-25 10:05:08 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:32 -0700
commitfdc4f2e95d3eb5c25fea449804e9174dd2e50903 (patch)
tree0d5baf344189e22c4aafa490c124984287c2dce3
parent1c93d9cf46df54784b96ab66423ad290dbe35095 (diff)
staging: dst: replace bus_id with dev_set_name
bus_id is going away, use the dev_set_name() function instead. Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/dst/dcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dst/dcore.c b/drivers/staging/dst/dcore.c
index c6e3cd1a505..a72181f86e3 100644
--- a/drivers/staging/dst/dcore.c
+++ b/drivers/staging/dst/dcore.c
@@ -311,7 +311,7 @@ static int dst_node_sysfs_init(struct dst_node *n)
memcpy(&n->info->device, &dst_node_dev, sizeof(struct device));
n->info->size = n->size;
- snprintf(n->info->device.bus_id, sizeof(n->info->device.bus_id), "dst-%s", n->name);
+ dev_set_name(&n->info->device, "dst-%s", n->name);
err = device_register(&n->info->device);
if (err) {
dprintk(KERN_ERR "Failed to register node '%s', err: %d.\n",