diff options
Diffstat (limited to 'arch/mips/xilfpga/init.c')
-rw-r--r-- | arch/mips/xilfpga/init.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/mips/xilfpga/init.c b/arch/mips/xilfpga/init.c index ce2aee2169ac..602e384a26a2 100644 --- a/arch/mips/xilfpga/init.c +++ b/arch/mips/xilfpga/init.c | |||
@@ -10,7 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/of_fdt.h> | 12 | #include <linux/of_fdt.h> |
13 | #include <linux/of_platform.h> | ||
14 | 13 | ||
15 | #include <asm/prom.h> | 14 | #include <asm/prom.h> |
16 | 15 | ||
@@ -43,15 +42,3 @@ void __init device_tree_init(void) | |||
43 | 42 | ||
44 | unflatten_and_copy_device_tree(); | 43 | unflatten_and_copy_device_tree(); |
45 | } | 44 | } |
46 | |||
47 | static int __init plat_of_setup(void) | ||
48 | { | ||
49 | if (!of_have_populated_dt()) | ||
50 | panic("Device tree not present"); | ||
51 | |||
52 | if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) | ||
53 | panic("Failed to populate DT"); | ||
54 | |||
55 | return 0; | ||
56 | } | ||
57 | arch_initcall(plat_of_setup); | ||