From 994894c3f710f5d8ca89d22988fe715db57bbc87 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Wed, 31 Aug 2016 00:10:59 +0900 Subject: [PATCH] openrisc: remove the redundant of_platform_populate The of_platform_populate call in the openrisc arch code is now redundant as the DT core provides a default call. Openrisc has a NULL match table which means only top level nodes with compatible strings will have devices creates. The default version will also descend nodes in the match table such as "simple-bus" which should be fine as openrisc doesn't have any of these (though it is preferred that memory-mapped peripherals be grouped under a bus node(s)). Signed-off-by: Rob Herring Cc: Jonas Bonn Tested-by: Guenter Roeck Signed-off-by: Stafford Horne --- arch/openrisc/kernel/setup.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c index b4ed8b36e078..d2f78cf79b4b 100644 --- a/arch/openrisc/kernel/setup.c +++ b/arch/openrisc/kernel/setup.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include @@ -219,15 +218,6 @@ void __init or32_early_setup(void *fdt) early_init_devtree(fdt); } -static int __init openrisc_device_probe(void) -{ - of_platform_populate(NULL, NULL, NULL, NULL); - - return 0; -} - -device_initcall(openrisc_device_probe); - static inline unsigned long extract_value_bits(unsigned long reg, short bit_nr, short width) { -- 2.30.2