From: Rob Herring <robh@kernel.org>
To: Ralf Baechle <ralf@linux-mips.org>,
Paul Burton <paul.burton@mips.com>,
James Hogan <jhogan@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
John Crispin <john@phrozen.org>
Subject: [PATCH 5/5] MIPS: lantiq: remove unnecessary of_platform_default_populate call
Date: Tue, 19 Jun 2018 15:47:10 -0600 [thread overview]
Message-ID: <20180619214710.22066-6-robh@kernel.org> (raw)
In-Reply-To: <20180619214710.22066-1-robh@kernel.org>
The DT core will call of_platform_default_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: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
arch/mips/lantiq/prom.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c
index 9ff7ccde9de0..d984bd5c2ec5 100644
--- a/arch/mips/lantiq/prom.c
+++ b/arch/mips/lantiq/prom.c
@@ -9,7 +9,6 @@
#include <linux/export.h>
#include <linux/clk.h>
#include <linux/bootmem.h>
-#include <linux/of_platform.h>
#include <linux/of_fdt.h>
#include <asm/bootinfo.h>
@@ -114,10 +113,3 @@ void __init prom_init(void)
panic("failed to register_vsmp_smp_ops()");
#endif
}
-
-int __init plat_of_setup(void)
-{
- return of_platform_default_populate(NULL, NULL, NULL);
-}
-
-arch_initcall(plat_of_setup);
--
2.17.1
next prev parent reply other threads:[~2018-06-19 21:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-19 21:47 [PATCH 0/5] MIPS: Clean-up DT bus probing Rob Herring
2018-06-19 21:47 ` [PATCH 1/5] MIPS: octeon: use of_platform_populate to probe devices Rob Herring
2018-06-19 21:47 ` [PATCH 2/5] MIPS: netlogic: remove unnecessary of_platform_bus_probe call Rob Herring
2018-06-19 21:47 ` [PATCH 3/5] MIPS: bmips: remove unnecessary call to register "simple-bus" Rob Herring
2018-06-19 21:47 ` [PATCH 4/5] MIPS: generic: remove unnecessary of_platform_populate call Rob Herring
2018-06-19 21:47 ` Rob Herring [this message]
2018-06-20 17:14 ` [PATCH 0/5] MIPS: Clean-up DT bus probing Paul Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180619214710.22066-6-robh@kernel.org \
--to=robh@kernel.org \
--cc=jhogan@kernel.org \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=paul.burton@mips.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox