ssb: Workaround: Need subsys_initcall to be able to register a PCI bus.
[openwrt-10.03/.git] / target / linux / brcm47xx / patches-2.6.23 / 620-ssb-modinit-fix.patch
1 Index: linux-2.6.23.16/drivers/ssb/main.c
2 ===================================================================
3 --- linux-2.6.23.16.orig/drivers/ssb/main.c     2008-02-19 02:24:48.000000000 +0100
4 +++ linux-2.6.23.16/drivers/ssb/main.c  2008-02-19 02:27:59.000000000 +0100
5 @@ -1164,7 +1164,9 @@ static int __init ssb_modinit(void)
6  /* ssb must be initialized after PCI but before the ssb drivers.
7   * That means we must use some initcall between subsys_initcall
8   * and device_initcall. */
9 -fs_initcall(ssb_modinit);
10 +//FIXME on embedded we need to be early to make sure we can register
11 +//      a new PCI bus, if needed.
12 +subsys_initcall(ssb_modinit);
13  
14  static void __exit ssb_modexit(void)
15  {