[POWERPC] ibmebus: Prevent bus_id collisions
authorJoachim Fenkes <fenkes@de.ibm.com>
Wed, 29 Aug 2007 16:15:17 +0000 (18:15 +0200)
committerPaul Mackerras <paulus@samba.org>
Mon, 10 Sep 2007 18:30:37 +0000 (04:30 +1000)
commitd8612417b2f78767b96ca434b50d23e5cdfcde07
treedc6231b7d51c350dfba09dc0d34251313ec286f7
parentd51dd3de87026cb0ea1ea5f873f08e930053bfc5
[POWERPC] ibmebus: Prevent bus_id collisions

Previously, ibmebus derived a device's bus_id from its location code.
The location code is not guaranteed to be unique, so we might get bus_id
collisions if two devices share the same location code.  The OFDT
full_name, however, is unique, so we use that instead (truncating it
on the left if it is too long).

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ibmebus.c