public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
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,
	Kevin Cernekee <cernekee@gmail.com>,
	Florian Fainelli <f.fainelli@gmail.com>
Subject: [PATCH 3/5] MIPS: bmips: remove unnecessary call to register "simple-bus"
Date: Tue, 19 Jun 2018 15:47:08 -0600	[thread overview]
Message-ID: <20180619214710.22066-4-robh@kernel.org> (raw)
In-Reply-To: <20180619214710.22066-1-robh@kernel.org>

The DT core will register "simple-bus" by default, so it is not necessary
for arch specific code to do so unless there are custom match entries,
auxdata or parent device. Neither of those apply here, so remove the call.

Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
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/bmips/setup.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c
index 3b6f687f177c..231fc5ce375e 100644
--- a/arch/mips/bmips/setup.c
+++ b/arch/mips/bmips/setup.c
@@ -202,13 +202,6 @@ void __init device_tree_init(void)
 	of_node_put(np);
 }
 
-int __init plat_of_setup(void)
-{
-	return __dt_register_buses("simple-bus", NULL);
-}
-
-arch_initcall(plat_of_setup);
-
 static int __init plat_dev_init(void)
 {
 	of_clk_init(NULL);
-- 
2.17.1


  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 ` [PATCH 2/5] MIPS: netlogic: remove unnecessary of_platform_bus_probe call Rob Herring
2018-06-19 21:47 ` Rob Herring [this message]
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-4-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=cernekee@gmail.com \
    --cc=f.fainelli@gmail.com \
    --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