2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 11:44:01 +08:00

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);