Skip to content

Commit f072f9c

Browse files
robherringpaulburton
authored andcommitted
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 <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> Patchwork: https://patchwork.linux-mips.org/patch/19588/ Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-kernel@vger.kernel.org
1 parent c8bf380 commit f072f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/cavium-octeon/octeon-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,6 @@ int __init octeon_prune_device_tree(void)
10671067

10681068
static int __init octeon_publish_devices(void)
10691069
{
1070-
return of_platform_bus_probe(NULL, octeon_ids, NULL);
1070+
return of_platform_populate(NULL, octeon_ids, NULL, NULL);
10711071
}
10721072
arch_initcall(octeon_publish_devices);

0 commit comments

Comments
 (0)