clean up PCI bus topology
[openwrt/staging/mkresin.git] / target / linux / brcm47xx / patches-3.6 / 180-bcma-make-bcma_find_core_unit-accessible-by-other-pa.patch
1 --- a/drivers/bcma/bcma_private.h
2 +++ b/drivers/bcma/bcma_private.h
3 @@ -31,6 +31,8 @@ int __init bcma_bus_early_register(struc
4 int bcma_bus_suspend(struct bcma_bus *bus);
5 int bcma_bus_resume(struct bcma_bus *bus);
6 #endif
7 +struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
8 + u8 unit);
9
10 /* scan.c */
11 int bcma_bus_scan(struct bcma_bus *bus);
12 --- a/drivers/bcma/main.c
13 +++ b/drivers/bcma/main.c
14 @@ -81,8 +81,8 @@ struct bcma_device *bcma_find_core(struc
15 }
16 EXPORT_SYMBOL_GPL(bcma_find_core);
17
18 -static struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
19 - u8 unit)
20 +struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
21 + u8 unit)
22 {
23 struct bcma_device *core;
24