From: Geert Uytterhoeven Date: Sun, 22 Jan 2012 11:45:45 +0000 (+0100) Subject: m68k/amiga: Use arch_initcall() for registering platform devices X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e2b56288af0c0b97c63aaaa667f2f3165971e911;p=linux-beck.git 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 --- 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);