summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2008-02-19 01:32:06 +0000
committerMichael Büsch <mb@bu3sch.de>2008-02-19 01:32:06 +0000
commit6119a6dfedc1f6d3254b21fe9b25e8e5053f5431 (patch)
tree86b855f75e2bb0fb277b60edeb3825d72ba17ceb /target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch
parentc57ca284ce95dbe3ab1024c2deb8055664b5bddc (diff)
downloadmtk-20170518-6119a6dfedc1f6d3254b21fe9b25e8e5053f5431.zip
mtk-20170518-6119a6dfedc1f6d3254b21fe9b25e8e5053f5431.tar.gz
mtk-20170518-6119a6dfedc1f6d3254b21fe9b25e8e5053f5431.tar.bz2
ssb: Workaround: Need subsys_initcall to be able to register a PCI bus.
This needs a different fix, but use this workaround for now. SVN-Revision: 10491
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch')
-rw-r--r--target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch b/target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch
new file mode 100644
index 0000000..0fb00f1
--- /dev/null
+++ b/target/linux/brcm47xx/patches-2.6.23/620-ssb-modinit-fix.patch
@@ -0,0 +1,15 @@
+Index: linux-2.6.23.16/drivers/ssb/main.c
+===================================================================
+--- linux-2.6.23.16.orig/drivers/ssb/main.c 2008-02-19 02:24:48.000000000 +0100
++++ linux-2.6.23.16/drivers/ssb/main.c 2008-02-19 02:27:59.000000000 +0100
+@@ -1164,7 +1164,9 @@ static int __init ssb_modinit(void)
+ /* ssb must be initialized after PCI but before the ssb drivers.
+ * That means we must use some initcall between subsys_initcall
+ * and device_initcall. */
+-fs_initcall(ssb_modinit);
++//FIXME on embedded we need to be early to make sure we can register
++// a new PCI bus, if needed.
++subsys_initcall(ssb_modinit);
+
+ static void __exit ssb_modexit(void)
+ {