Skip to content

Commit

Permalink
MIPS: AR7: prevent race between clock initialization and devices regi…
Browse files Browse the repository at this point in the history
…stration

ar7_regiser_devices needs ar7_clocks_init to have been called first,
however clock.o is currently linked later due to its order in the Makefile,
therefore ar7_clocks_init always gets called later than ar7_register_devices
because both have the same initcall level. Fix this by moving
ar7_register_devices to the right initcall level.

Reported-by: Michael J. Evans <mjevans1983@gmail.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/1212/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed May 21, 2010
1 parent 9c1b013 commit 142a2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/ar7/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,4 +647,4 @@ static int __init ar7_register_devices(void)

return 0;
}
arch_initcall(ar7_register_devices);
device_initcall(ar7_register_devices);

0 comments on commit 142a2ce

Please sign in to comment.