Commit fdc4f2e9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1c93d9cf
......@@ -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",
......
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