Skip to contentSkip to conversation

h8300: remove the redundant of_platform_populate

PATCH New Rob Herring 1 participant 1 message Aug 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 h8300: remove the redundant of_platform_populate

The of_platform_populate call in the h8300 arch code is now redundant as the DT core provides a default call. h8300 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 h8300 doesn't have any of these (though it is preferred that memory-mapped peripherals be grouped under a bus node(s)).

---
 arch/h8300/kernel/setup.c | 10 ----------
 1 file changed, 10 deletions(-)
arch/h8300/kernel/setup.c +0 -10
index c8c25a4..75f0df8 100644
@@ -22,7 +22,6 @@
 #include <linux/init.h>
 #include <linux/of.h>
 #include <linux/of_fdt.h>
-#include <linux/of_platform.h>
 #include <linux/of_address.h>
 #include <linux/clk-provider.h>
 #include <linux/memblock.h>
@@ -187,15 +186,6 @@ const struct seq_operations cpuinfo_op = {
 	.show	= show_cpuinfo,
 };
 
-static int __init device_probe(void)
-{
-	of_platform_populate(NULL, NULL, NULL, NULL);
-
-	return 0;
-}
-
-device_initcall(device_probe);
-
 #if defined(CONFIG_CPU_H8300H)
 #define get_wait(base, addr) ({		\
 	int baddr;			\
Signature · 1 line
2.9.3