Commit 9591463a authored by Kay Sievers's avatar Kay Sievers Committed by Greg Kroah-Hartman

dio: struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
parent 9d6b4c82
...@@ -182,7 +182,7 @@ static int __init dio_init(void) ...@@ -182,7 +182,7 @@ static int __init dio_init(void)
/* Initialize the DIO bus */ /* Initialize the DIO bus */
INIT_LIST_HEAD(&dio_bus.devices); 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); error = device_register(&dio_bus.dev);
if (error) { if (error) {
pr_err("DIO: Error registering dio_bus\n"); pr_err("DIO: Error registering dio_bus\n");
...@@ -237,7 +237,7 @@ static int __init dio_init(void) ...@@ -237,7 +237,7 @@ static int __init dio_init(void)
dev->scode = scode; dev->scode = scode;
dev->resource.start = pa; dev->resource.start = pa;
dev->resource.end = pa + DIO_SIZE(scode, va); 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. */ /* read the ID byte(s) and encode if necessary. */
prid = DIO_ID(va); prid = DIO_ID(va);
......
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