[PATCH 04/11] m68k/amiga: Use arch_initcall() for registering platform devices

Geert Uytterhoeven
2012-03-21T09:51:48Z

module_init() maps to device_initcall(), opening the possibility of
race conditions between platform_driver_probe() and registering platform
devices.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
arch/m68k/amiga/platform.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/amiga/platform.c b/arch/m68k/amiga/platform.c
index 2872891..80076d3 100644
--- a/arch/m68k/amiga/platform.c
+++ b/arch/m68k/amiga/platform.c
@@ -252,4 +252,4 @@ static int __init amiga_init_devices(void)
return 0;
}

-device_initcall(amiga_init_devices);
+arch_initcall(amiga_init_devices);
--
1.7.0.4