From: David S. Miller Date: Tue, 18 Jul 2006 04:06:15 +0000 (-0700) Subject: [SPARC] sbus: Make sure sbus nodes are named uniquely. X-Git-Tag: v2.6.18-rc3~70 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=39329329565a5e24f0a5523eef3a9dd941e0b29d;hp=f7785a64d117951e4c2bf9418d8c1dd59fe53b36;p=safe%2Fjmp%2Flinux-2.6 [SPARC] sbus: Make sure sbus nodes are named uniquely. 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 --- diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c index 16b5977..935952e 100644 --- a/drivers/sbus/sbus.c +++ b/drivers/sbus/sbus.c @@ -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",