bcm63xx: add support for linux 3.8
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.8 / 306-Revert-MIPS-BCM63XX-Call-board_register_device-from-.patch
1 From a7d2622b6614fdca504c074a0cd307d5a1165c30 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Tue, 8 May 2012 09:39:01 +0200
4 Subject: [PATCH 04/59] Revert "MIPS: BCM63XX: Call board_register_device from device_initcall()"
5
6 This commit causes a race between PCI scan and SSB fallback SPROM handler
7 registration, causing the wifi to not work on slower systems. The only
8 subsystem touched from board_register_device is platform device
9 registration, which should be safe as an arch init call.
10
11 This reverts commit d64ed7ada2f689d2c62af1892ca55e47d3653e36.
12 ---
13 arch/mips/bcm63xx/setup.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
15
16 --- a/arch/mips/bcm63xx/setup.c
17 +++ b/arch/mips/bcm63xx/setup.c
18 @@ -157,4 +157,4 @@ int __init bcm63xx_register_devices(void
19 return board_register_devices();
20 }
21
22 -device_initcall(bcm63xx_register_devices);
23 +arch_initcall(bcm63xx_register_devices);