of: make of_find_device_by_node generic
authorJonas Bonn <jonas@southpole.se>
Fri, 23 Jul 2010 17:19:35 +0000 (19:19 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 24 Jul 2010 15:58:22 +0000 (09:58 -0600)
commitc608558407aa64d2b98d58bfc116e95c0afb357e
tree1dba985555b1fff5ce587c6368f47383ba00ebd4
parentde48e369e8ea3a773cb2f959b76fcfad9966f4a0
of: make of_find_device_by_node generic

There's no need for this function to be architecture specific and all four
architectures defining it had the same definition.  The function has been
moved to drivers/of/platform.c.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
[grant.likely@secretlab.ca: moved to drivers/of/platform.c, simplified code, and added kerneldoc comment]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
arch/microblaze/kernel/of_platform.c
arch/powerpc/kernel/of_platform.c
arch/sparc/kernel/of_device_common.c
drivers/of/platform.c