projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12de512
)
sparc: struct device - replace bus_id with dev_name(), dev_set_name()
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 13 Nov 2008 07:48:40 +0000
(23:48 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 13 Nov 2008 07:48:40 +0000
(23:48 -0800)
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/of_device.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/of_device.c
b/arch/sparc/kernel/of_device.c
index
0837bd5
..
0a83bd7
100644
(file)
--- a/
arch/sparc/kernel/of_device.c
+++ b/
arch/sparc/kernel/of_device.c
@@
-563,9
+563,9
@@
build_resources:
op->dev.parent = parent;
op->dev.bus = &of_platform_bus_type;
if (!parent)
-
strcpy(op->dev.bus_id
, "root");
+
dev_set_name(&op->dev
, "root");
else
-
sprintf(op->dev.bus_id
, "%08x", dp->node);
+
dev_set_name(&op->dev
, "%08x", dp->node);
if (of_device_register(op)) {
printk("%s: Could not register of device.\n",