ar71xx: use modules for LED triggers
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 195-bcma-export-bcma_find_core.patch
1
2 --- a/drivers/bcma/main.c
3 +++ b/drivers/bcma/main.c
4 @@ -61,7 +61,7 @@ static struct bus_type bcma_bus_type = {
5 .dev_attrs = bcma_device_attrs,
6 };
7
8 -static struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid)
9 +struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid)
10 {
11 struct bcma_device *core;
12
13 @@ -71,6 +71,7 @@ static struct bcma_device *bcma_find_cor
14 }
15 return NULL;
16 }
17 +EXPORT_SYMBOL_GPL(bcma_find_core);
18
19 static void bcma_release_core_dev(struct device *dev)
20 {
21 --- a/include/linux/bcma/bcma.h
22 +++ b/include/linux/bcma/bcma.h
23 @@ -285,6 +285,7 @@ static inline void bcma_maskset16(struct
24 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set);
25 }
26
27 +extern struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid);
28 extern bool bcma_core_is_enabled(struct bcma_device *core);
29 extern void bcma_core_disable(struct bcma_device *core, u32 flags);
30 extern int bcma_core_enable(struct bcma_device *core, u32 flags);
This page took 0.042891 seconds and 5 git commands to generate.