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 <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven 2012-01-22 12:45:45 +01:00
parent eeed227966
commit e2b56288af

View file

@ -252,4 +252,4 @@ static int __init amiga_init_devices(void)
return 0;
}
device_initcall(amiga_init_devices);
arch_initcall(amiga_init_devices);