Skip to content

Commit

Permalink
m68k/amiga: Use arch_initcall() for registering platform devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven committed Apr 22, 2012
1 parent eeed227 commit e2b5628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/amiga/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ static int __init amiga_init_devices(void)
return 0;
}

device_initcall(amiga_init_devices);
arch_initcall(amiga_init_devices);

0 comments on commit e2b5628

Please sign in to comment.