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
Subject: [PATCH 2/5] MIPS: netlogic: remove unnecessary of_platform_bus_probe call
Date: Tue, 19 Jun 2018 15:47:07 -0600 [thread overview]
Message-ID: <20180619214710.22066-3-robh@kernel.org> (raw)
In-Reply-To: <20180619214710.22066-1-robh@kernel.org>
The DT core code will probe "simple-bus" by default, so remove
the Netlogic specific call. The probing of simple-bus happens at
arch_initcall_sync, so the call being removed here is already a nop.
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/netlogic/xlp/dt.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/arch/mips/netlogic/xlp/dt.c b/arch/mips/netlogic/xlp/dt.c
index 856a6e6d296e..b5ba83f4c646 100644
--- a/arch/mips/netlogic/xlp/dt.c
+++ b/arch/mips/netlogic/xlp/dt.c
@@ -93,17 +93,3 @@ void __init device_tree_init(void)
{
unflatten_and_copy_device_tree();
}
-
-static struct of_device_id __initdata xlp_ids[] = {
- { .compatible = "simple-bus", },
- {},
-};
-
-int __init xlp8xx_ds_publish_devices(void)
-{
- if (!of_have_populated_dt())
- return 0;
- return of_platform_bus_probe(NULL, xlp_ids, NULL);
-}
-
-device_initcall(xlp8xx_ds_publish_devices);
--
2.17.1
next prev parent reply other threads:[~2018-06-19 21:47 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 ` Rob Herring [this message]
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 ` [PATCH 5/5] MIPS: lantiq: remove unnecessary of_platform_default_populate call Rob Herring
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-3-robh@kernel.org \
--to=robh@kernel.org \
--cc=jhogan@kernel.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;
as well as URLs for NNTP newsgroup(s).