[POWERPC] powerpc: Workaround for of_platform without "reg" nor "dcr-reg"
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Nov 2006 03:56:37 +0000 (14:56 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:17 +0000 (20:40 +1100)
Devices with no "reg" nor "dcr-reg" property are given a bus_id which
is the node name alone. This means that if more than one such device
with the same names are present in the system, sysfs will have
collisions when creating the symlinks and will fail registering the
devices.

This works around that problem by assigning successive numbers to such
devices.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

No differences found