diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-03-27 17:07:28 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-03-27 17:07:28 +0000 |
commit | e4caa064ac41ef53d519304ac2a6f8013ce4a44c (patch) | |
tree | e73f2ed0fef750255755dd6e2466d5dc95a72d5b /target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch | |
parent | e1b38bfcc18a87f62dfaccc7c3ba7e2b28375b68 (diff) | |
download | upstream-e4caa064ac41ef53d519304ac2a6f8013ce4a44c.tar.gz upstream-e4caa064ac41ef53d519304ac2a6f8013ce4a44c.tar.bz2 upstream-e4caa064ac41ef53d519304ac2a6f8013ce4a44c.zip |
brcm47xx: update sprom patches like they are in the mainline kernel
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31093 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch b/target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch new file mode 100644 index 0000000000..79e32a2414 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.2/195-bcma-export-bcma_find_core.patch @@ -0,0 +1,30 @@ + +--- a/drivers/bcma/main.c ++++ b/drivers/bcma/main.c +@@ -61,7 +61,7 @@ static struct bus_type bcma_bus_type = { + .dev_attrs = bcma_device_attrs, + }; + +-static struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid) ++struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid) + { + struct bcma_device *core; + +@@ -71,6 +71,7 @@ static struct bcma_device *bcma_find_cor + } + return NULL; + } ++EXPORT_SYMBOL_GPL(bcma_find_core); + + static void bcma_release_core_dev(struct device *dev) + { +--- a/include/linux/bcma/bcma.h ++++ b/include/linux/bcma/bcma.h +@@ -285,6 +285,7 @@ static inline void bcma_maskset16(struct + bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); + } + ++extern struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid); + extern bool bcma_core_is_enabled(struct bcma_device *core); + extern void bcma_core_disable(struct bcma_device *core, u32 flags); + extern int bcma_core_enable(struct bcma_device *core, u32 flags); |