Skip to content

Commit

Permalink
[SPARC] sbus: Make sure sbus nodes are named uniquely.
Browse files Browse the repository at this point in the history
Just name them "sbus%d" otherwise on sun4d we try to register
multiple entries named "sbi@0,0" which does not work.

Based upon a report from Raymond Burns.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 21, 2006
1 parent f7785a6 commit 3932932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sbus/sbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void __init build_one_sbus(struct device_node *dp, int num_sbus)
sbus->ofdev.node = dp;
sbus->ofdev.dev.parent = NULL;
sbus->ofdev.dev.bus = &sbus_bus_type;
strcpy(sbus->ofdev.dev.bus_id, dp->path_component_name);
sprintf(sbus->ofdev.dev.bus_id, "sbus%d", num_sbus);

if (of_device_register(&sbus->ofdev) != 0)
printk(KERN_DEBUG "sbus: device registration error for %s!\n",
Expand Down

0 comments on commit 3932932

Please sign in to comment.