summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-30 21:12:28 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-30 21:12:28 +0000
commit6baeb520da4e49c3bbcb9a4af3fe8af143d9fca3 (patch)
tree7cfc1f554bf7f0439fb8e91909d3a8b14a179dcc /target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch
parent283043998c97e02ab4ccc23433fa54cf112bc2b0 (diff)
[brcm63xx] remove support for 2.6.39
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29959 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch')
-rw-r--r--target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch b/target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch
deleted file mode 100644
index a6e03d556..000000000
--- a/target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
-+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2128,6 +2128,17 @@ static struct ssb_sprom bcm63xx_sprom =
- .boardflags_lo = 0x2848,
- .boardflags_hi = 0x0000,
- };
-+
-+int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
-+{
-+ if (bus->bustype == SSB_BUSTYPE_PCI) {
-+ memcpy(out, &bcm63xx_sprom, sizeof(struct ssb_sprom));
-+ return 0;
-+ } else {
-+ printk(KERN_ERR PFX "unable to fill SPROM for given bustype.\n");
-+ return -EINVAL;
-+ }
-+}
- #endif
-
- /*
-@@ -2397,8 +2408,9 @@ int __init board_register_devices(void)
- if (!board_get_mac_address(bcm63xx_sprom.il0mac)) {
- memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN);
- memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN);
-- if (ssb_arch_set_fallback_sprom(&bcm63xx_sprom) < 0)
-- printk(KERN_ERR "failed to register fallback SPROM\n");
-+ if (ssb_arch_register_fallback_sprom(
-+ &bcm63xx_get_fallback_sprom) < 0)
-+ printk(KERN_ERR PFX "failed to register fallback SPROM\n");
- }
- #endif
-