bcm63xx: fix a race between PCI bus scan and fallback sprom registration
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 306-MIPS-BCM63XX-register-devices-earlier.patch
1 From d42f3f75a5d1abe9f7c5275fb59f3e894e83043d Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Sun, 6 May 2012 15:05:48 +0200
4 Subject: [PATCH 1/2] MIPS: BCM63XX: register devices earlier
5
6 Register devices as an arch initcall so that the fallback sprom gets
7 installed in the same phase as the pci bus gets registered.
8
9 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
10 ---
11 arch/mips/bcm63xx/setup.c | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14 --- a/arch/mips/bcm63xx/setup.c
15 +++ b/arch/mips/bcm63xx/setup.c
16 @@ -150,4 +150,4 @@ int __init bcm63xx_register_devices(void
17 return board_register_devices();
18 }
19
20 -device_initcall(bcm63xx_register_devices);
21 +arch_initcall(bcm63xx_register_devices);