584bc48907528ba220b9e682e012fe86cfd1cb17
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.8 / 017-Revert-MIPS-BCM63XX-Call-board_register_device-from-.patch
1 From 76d82677cb010b28346aa4c7aa9d36d94916392b Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Tue, 8 May 2012 09:39:01 +0200
4 Subject: [PATCH] Revert "MIPS: BCM63XX: Call board_register_device from
5 device_initcall()"
6
7 This commit causes a race between PCI scan and SSB fallback SPROM handler
8 registration, causing the wifi to not work on slower systems. The only
9 subsystem touched from board_register_devices is platform device
10 registration, which is safe as an arch init call.
11
12 This reverts commit d64ed7ada2f689d2c62af1892ca55e47d3653e36.
13
14 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
15 ---
16
17 This patch is in OpenWrt since ages, and we never encountered any issues
18 from this revert.
19
20 arch/mips/bcm63xx/setup.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/arch/mips/bcm63xx/setup.c
24 +++ b/arch/mips/bcm63xx/setup.c
25 @@ -157,4 +157,4 @@ int __init bcm63xx_register_devices(void
26 return board_register_devices();
27 }
28
29 -device_initcall(bcm63xx_register_devices);
30 +arch_initcall(bcm63xx_register_devices);