MIPS: Create a helper function for DT setup
authorKevin Cernekee <cernekee@gmail.com>
Tue, 21 Oct 2014 04:28:02 +0000 (21:28 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:12 +0000 (07:45 +0100)
commit84988c068108c99cf0e7d2391f5bf6bd91e2494c
tree6e0fcbfa1e23b9606a424fbaf9edd1e70d572bac
parent68e6a78373a6d3ab6d2811f891596fdd8408efec
MIPS: Create a helper function for DT setup

A couple of platforms register two buses and call of_platform_populate().
Move this into a common function to reduce duplication.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: f.fainelli@gmail.com
Cc: mbizon@freebox.fr
Cc: jogo@openwrt.org
Cc: jfraser@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8167/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/prom.h
arch/mips/kernel/prom.c
arch/mips/lantiq/prom.c
arch/mips/ralink/of.c