sparc: move of_device common code to of_device_common
authorRobert Reif <reif@earthlink.net>
Thu, 4 Jun 2009 09:00:02 +0000 (02:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2009 11:56:49 +0000 (04:56 -0700)
commitc9f5b7e77c30da25104a3f7f26ac46c07d7b5cb6
treee209e70377b4fbaf95168366430884b3b2474d2e
parentd69864158e24f323e818403c6b89ad4871aea6f6
sparc: move of_device common code to of_device_common

This patch moves code common to of_device_32.c and of_device_64.c into
of_device_common.h and of_device_common.c.

The only functional difference is in sparc32 where of_bus_default_map is
used in place of of_bus_sbus_map because they are equivelent.

There is still room for further code consolidation with some minor
refactoring.

Boot tested on sparc32 and compile tested on sparc64.

Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/Makefile
arch/sparc/kernel/of_device_32.c
arch/sparc/kernel/of_device_64.c
arch/sparc/kernel/of_device_common.c [new file with mode: 0644]
arch/sparc/kernel/of_device_common.h [new file with mode: 0644]