aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2018-06-19 15:47:06 -0600
committerPaul Burton <[email protected]>2018-06-24 09:27:27 -0700
commitf072f9ce9bd3602bd3b14e15513ee80d437cf4cf (patch)
tree916d9d6568e94564fbe39f4ef568ab3fe1e3966c
parentc8bf38055efaf764fd8c313695759c64dc735842 (diff)
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 <[email protected]> Cc: Paul Burton <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/19588/ Signed-off-by: Paul Burton <[email protected]> Cc: [email protected]
-rw-r--r--arch/mips/cavium-octeon/octeon-platform.c2
1 files changed, 1 insertions, 1 deletions
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);