]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit587c88ec4336f01b7d0217f764a7558f9fb65474
treee209e70377b4fbaf95168366430884b3b2474d2e
parent75489133850233bd1f192cc4fa5ddd7fd22a6c77
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]