diff options
| author | Kefeng Wang <[email protected]> | 2016-06-01 06:53:01 +0000 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2016-06-23 20:00:29 +0000 |
| commit | ddd0ce87bfdebbc92c639286a2bf1241f335e6c8 (patch) | |
| tree | 1e33c7bc38813efde5a2c7c31c470105006a5df8 /arch/mips/xilfpga/init.c | |
| parent | metag: Remove unnecessary of_platform_populate with default match table (diff) | |
| download | kernel-ddd0ce87bfdebbc92c639286a2bf1241f335e6c8.tar.gz kernel-ddd0ce87bfdebbc92c639286a2bf1241f335e6c8.zip | |
mips: Remove unnecessary of_platform_populate with default match table
After patch "of/platform: Add common method to populate default bus",
it is possible for arch code to remove unnecessary callers of
of_platform_populate with default match table.
Cc: Ralf Baechle <[email protected]>
Cc: Alban Bedel <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: James Hogan <[email protected]>
Cc: Joshua Henderson <[email protected]>
Cc: Zubair Lutfullah Kakakhel <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
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 @@ */ #include <linux/of_fdt.h> -#include <linux/of_platform.h> #include <asm/prom.h> @@ -43,15 +42,3 @@ void __init device_tree_init(void) unflatten_and_copy_device_tree(); } - -static int __init plat_of_setup(void) -{ - if (!of_have_populated_dt()) - panic("Device tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(plat_of_setup); |
