From e2b56288af0c0b97c63aaaa667f2f3165971e911 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Sun, 22 Jan 2012 12:45:45 +0100 Subject: [PATCH] m68k/amiga: Use arch_initcall() for registering platform devices 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 --- arch/m68k/amiga/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/amiga/platform.c b/arch/m68k/amiga/platform.c index 28728918b295..80076d368b7e 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); -- 2.39.5