Skip to content

Commit

Permalink
staging: dst: replace bus_id with dev_set_name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 1c93d9c commit fdc4f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/dst/dcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdc4f2e

Please sign in to comment.