projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeed227
)
m68k/amiga: Use arch_initcall() for registering platform devices
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 22 Jan 2012 11:45:45 +0000
(12:45 +0100)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 22 Apr 2012 18:16:48 +0000
(20:16 +0200)
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>
arch/m68k/amiga/platform.c
patch
|
blob
|
history
diff --git
a/arch/m68k/amiga/platform.c
b/arch/m68k/amiga/platform.c
index 28728918b295545780fcbe2715abae1b2550e8b1..80076d368b7e8b4417c4612017fd4cbb824ab358 100644
(file)
--- 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);