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 1/5] MIPS: octeon: use of_platform_populate to probe devices
Date: Tue, 19 Jun 2018 15:47:06 -0600 [thread overview]
Message-ID: <20180619214710.22066-2-robh@kernel.org> (raw)
In-Reply-To: <20180619214710.22066-1-robh@kernel.org>
of_platform_bus_probe is deprecated in favor of of_platform_populate.
of_platform_populate is stricter requiring compatible properties for
matching rather than name or type. Octeon uses compatible strings for
matching, so convert it to of_platform_populate.
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/cavium-octeon/octeon-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/cavium-octeon/octeon-platform.c b/arch/mips/cavium-octeon/octeon-platform.c
index 8505db478904..2940e9cc3a04 100644
--- a/arch/mips/cavium-octeon/octeon-platform.c
+++ b/arch/mips/cavium-octeon/octeon-platform.c
@@ -1067,6 +1067,6 @@ int __init octeon_prune_device_tree(void)
static int __init octeon_publish_devices(void)
{
- return of_platform_bus_probe(NULL, octeon_ids, NULL);
+ return of_platform_populate(NULL, octeon_ids, NULL, NULL);
}
arch_initcall(octeon_publish_devices);
--
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 ` Rob Herring [this message]
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 ` [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-2-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