[kernel/2.6.32] MIPS: mark unused variables
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 194-bcma-export-bcma_find_core.patch
1 From a07c69ed06031373726e9e5e513d0d942997c265 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sat, 18 Feb 2012 14:22:32 +0100
4 Subject: [PATCH 194/202] bcma: export bcma_find_core
5
6 This function is needed by the bcm47xx arch code to get the number of
7 the ieee80211 core.
8
9 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 ---
11 drivers/bcma/main.c | 3 ++-
12 include/linux/bcma/bcma.h | 1 +
13 2 files changed, 3 insertions(+), 1 deletions(-)
14
15 --- a/drivers/bcma/main.c
16 +++ b/drivers/bcma/main.c
17 @@ -61,7 +61,7 @@ static struct bus_type bcma_bus_type = {
18 .dev_attrs = bcma_device_attrs,
19 };
20
21 -static struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid)
22 +struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid)
23 {
24 struct bcma_device *core;
25
26 @@ -71,6 +71,7 @@ static struct bcma_device *bcma_find_cor
27 }
28 return NULL;
29 }
30 +EXPORT_SYMBOL_GPL(bcma_find_core);
31
32 static void bcma_release_core_dev(struct device *dev)
33 {
34 --- a/include/linux/bcma/bcma.h
35 +++ b/include/linux/bcma/bcma.h
36 @@ -285,6 +285,7 @@ static inline void bcma_maskset16(struct
37 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set);
38 }
39
40 +extern struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid);
41 extern bool bcma_core_is_enabled(struct bcma_device *core);
42 extern void bcma_core_disable(struct bcma_device *core, u32 flags);
43 extern int bcma_core_enable(struct bcma_device *core, u32 flags);
This page took 0.042059 seconds and 5 git commands to generate.