aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ralink/of.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/ralink/of.c')
-rw-r--r--arch/mips/ralink/of.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
index 7c4598cb6de8..f68115fd98ef 100644
--- a/arch/mips/ralink/of.c
+++ b/arch/mips/ralink/of.c
@@ -74,19 +74,9 @@ void __init plat_mem_setup(void)
74 74
75static int __init plat_of_setup(void) 75static int __init plat_of_setup(void)
76{ 76{
77 static struct of_device_id of_ids[3]; 77 __dt_register_buses(soc_info.compatible, "palmbus");
78 int len = sizeof(of_ids[0].compatible);
79 78
80 if (!of_have_populated_dt()) 79 /* make sure that the reset controller is setup early */
81 panic("device tree not present");
82
83 strlcpy(of_ids[0].compatible, soc_info.compatible, len);
84 strlcpy(of_ids[1].compatible, "palmbus", len);
85
86 if (of_platform_populate(NULL, of_ids, NULL, NULL))
87 panic("failed to populate DT");
88
89 /* make sure ithat the reset controller is setup early */
90 ralink_rst_init(); 80 ralink_rst_init();
91 81
92 return 0; 82 return 0;