summaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-06-19 15:40:54 -0600
committerYoshinori Sato <ysato@users.sourceforge.jp>2018-08-22 19:14:20 +0900
commitec3d5f1658f44538907b149d6396453e0ceedc60 (patch)
tree5456ebfffbdb70277593ca2856db1a8162ffa26f /arch/h8300
parent5743ee22bf3f8842f2330925434a727e1044e2a1 (diff)
downloadlinux-0-day-ec3d5f1658f44538907b149d6396453e0ceedc60.tar.gz
linux-0-day-ec3d5f1658f44538907b149d6396453e0ceedc60.tar.xz
h8300: remove unnecessary of_platform_populate call
The DT core will call of_platform_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: uclinux-h8-devel@lists.sourceforge.jp Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/kernel/setup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/h8300/kernel/setup.c b/arch/h8300/kernel/setup.c
index 33ed980e7aead..34e2df5c0d6d8 100644
--- a/arch/h8300/kernel/setup.c
+++ b/arch/h8300/kernel/setup.c
@@ -23,7 +23,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>
@@ -168,15 +167,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; \