From: Rob Herring Date: Tue, 19 Jun 2018 21:47:06 +0000 (-0600) Subject: MIPS: octeon: use of_platform_populate to probe devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f072f9ce9bd3602bd3b14e15513ee80d437cf4cf;p=openwrt%2Fstaging%2Fblogic.git MIPS: octeon: use of_platform_populate to probe devices 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 Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring Patchwork: https://patchwork.linux-mips.org/patch/19588/ Signed-off-by: Paul Burton Cc: linux-kernel@vger.kernel.org --- 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 @@ end_led: 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);