Skip to content

Commit

Permalink
h8300: remove unnecessary of_platform_populate call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Yoshinori Sato committed Aug 22, 2018
1 parent 5743ee2 commit ec3d5f1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/h8300/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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; \
Expand Down

0 comments on commit ec3d5f1

Please sign in to comment.