Skip to content

Commit

Permalink
dio: struct device - replace bus_id with dev_name(), dev_set_name()
Browse files Browse the repository at this point in the history
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 9d6b4c8 commit 9591463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dio/dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static int __init dio_init(void)

/* Initialize the DIO bus */
INIT_LIST_HEAD(&dio_bus.devices);
strcpy(dio_bus.dev.bus_id, "dio");
dev_set_name(&dio_bus.dev, "dio");
error = device_register(&dio_bus.dev);
if (error) {
pr_err("DIO: Error registering dio_bus\n");
Expand Down Expand Up @@ -237,7 +237,7 @@ static int __init dio_init(void)
dev->scode = scode;
dev->resource.start = pa;
dev->resource.end = pa + DIO_SIZE(scode, va);
sprintf(dev->dev.bus_id,"%02x", scode);
dev_set_name(&dev->dev, "%02x", scode);

/* read the ID byte(s) and encode if necessary. */
prid = DIO_ID(va);
Expand Down

0 comments on commit 9591463

Please sign in to comment.