summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.10
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-09-17 21:25:36 +0000
committerRafał Miłecki <zajec5@gmail.com>2014-09-17 21:25:36 +0000
commitda74f722e1fa3651cb3c1d41c3f5c7c8f7e9b05f (patch)
tree5602f9f538b267bf7fc8629671839b131e039c22 /target/linux/generic/patches-3.10
parent5b3f0d98dfc3e3f72d7e7a93d2c9aa7cf90c1afd (diff)
downloadmtk-20170518-da74f722e1fa3651cb3c1d41c3f5c7c8f7e9b05f.zip
mtk-20170518-da74f722e1fa3651cb3c1d41c3f5c7c8f7e9b05f.tar.gz
mtk-20170518-da74f722e1fa3651cb3c1d41c3f5c7c8f7e9b05f.tar.bz2
kernel: fix backport of bcma init patch
Upstream bcma patch: bcma: use separated function to initialize bus on SoC was backported incompletely. I missed arch code change. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 42603
Diffstat (limited to 'target/linux/generic/patches-3.10')
-rw-r--r--target/linux/generic/patches-3.10/025-bcma_backport.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.10/025-bcma_backport.patch b/target/linux/generic/patches-3.10/025-bcma_backport.patch
index 731dea3..922b140 100644
--- a/target/linux/generic/patches-3.10/025-bcma_backport.patch
+++ b/target/linux/generic/patches-3.10/025-bcma_backport.patch
@@ -2266,3 +2266,26 @@
+ if (ccb->mii)
+ iounmap(ccb->mii);
+}
+--- a/include/linux/bcma/bcma_soc.h
++++ b/include/linux/bcma/bcma_soc.h
+@@ -10,6 +10,7 @@ struct bcma_soc {
+ };
+
+ int __init bcma_host_soc_register(struct bcma_soc *soc);
++int __init bcma_host_soc_init(struct bcma_soc *soc);
+
+ int bcma_bus_register(struct bcma_bus *bus);
+
+--- a/arch/mips/bcm47xx/setup.c
++++ b/arch/mips/bcm47xx/setup.c
+@@ -194,6 +194,10 @@ static void __init bcm47xx_register_bcma
+
+ err = bcma_host_soc_register(&bcm47xx_bus.bcma);
+ if (err)
++ panic("Failed to register BCMA bus (err %d)", err);
++
++ err = bcma_host_soc_init(&bcm47xx_bus.bcma);
++ if (err)
+ panic("Failed to initialize BCMA bus (err %d)", err);
+
+ bcm47xx_fill_bcma_boardinfo(&bcm47xx_bus.bcma.bus.boardinfo, NULL);