Skip to content

Commit

Permalink
MIPS: Octeon: Fix platform bus probing
Browse files Browse the repository at this point in the history
Commit 44a7185 ("of/platform: Add common method to populate
default bus") added new arch_initcall of_platform_default_populate_init()
that will override device_initcall octeon_publish_devices(). This broke
many OCTEON boards as important devices are not getting probed anymore
(e.g. on EdgeRouter Lite the USB mass storage/rootfs is missing).

Fix by changing octeon_publish_devices() to arch_initcall.

Fixes: 44a7185 ("of/platform: Add common method to populate default bus")
Signed-off-by: Aaro Koskinen <[email protected]>
Acked-by: Rob Herring <[email protected]>
Cc: David Daney <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14041/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
aakoskin authored and ralfbaechle committed Sep 19, 2016
1 parent 3312eca commit 8074d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/cavium-octeon/octeon-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ static int __init octeon_publish_devices(void)
{
return of_platform_bus_probe(NULL, octeon_ids, NULL);
}
device_initcall(octeon_publish_devices);
arch_initcall(octeon_publish_devices);

MODULE_AUTHOR("David Daney <[email protected]>");
MODULE_LICENSE("GPL");
Expand Down

0 comments on commit 8074d78

Please sign in to comment.