diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-03 18:51:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-07 15:18:28 -0500 |
commit | 929a03aeb149017e88fbe5878c2b6585cfda8704 (patch) | |
tree | c21022e2d39adc1cbdc9c5ab9869e365e305b4bf | |
parent | 03c2dc73581ad4ae54f1ccfc1463929b16b8b736 (diff) |
bcma: make bcma_find_core_unit() accessible
This bcma_find_core_unit() is needed by the mips driver in the next
patch.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/bcma/bcma_private.h | 2 | ||||
-rw-r--r-- | drivers/bcma/main.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index 4a2d72ec6d43..d35294e81d15 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h | |||
@@ -31,6 +31,8 @@ int __init bcma_bus_early_register(struct bcma_bus *bus, | |||
31 | int bcma_bus_suspend(struct bcma_bus *bus); | 31 | int bcma_bus_suspend(struct bcma_bus *bus); |
32 | int bcma_bus_resume(struct bcma_bus *bus); | 32 | int bcma_bus_resume(struct bcma_bus *bus); |
33 | #endif | 33 | #endif |
34 | struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, | ||
35 | u8 unit); | ||
34 | 36 | ||
35 | /* scan.c */ | 37 | /* scan.c */ |
36 | int bcma_bus_scan(struct bcma_bus *bus); | 38 | int bcma_bus_scan(struct bcma_bus *bus); |
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 53ba20ca17e0..d12b7da556e1 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -81,8 +81,8 @@ struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid) | |||
81 | } | 81 | } |
82 | EXPORT_SYMBOL_GPL(bcma_find_core); | 82 | EXPORT_SYMBOL_GPL(bcma_find_core); |
83 | 83 | ||
84 | static struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, | 84 | struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, |
85 | u8 unit) | 85 | u8 unit) |
86 | { | 86 | { |
87 | struct bcma_device *core; | 87 | struct bcma_device *core; |
88 | 88 | ||