aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-01-30 18:03:33 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:53:02 -0500
commit4b259a5cc5ea967fa243dfc1f95a59ae74106f5b (patch)
tree2d249388538e0086acf5969e5617715ed682cd4a /drivers
parent2be25cac8402fab56bb51166f464d1b420bcf744 (diff)
bcma: export bcma_pcie_read()
This will be needed by the host controller. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bcma/bcma_private.h3
-rw-r--r--drivers/bcma/driver_pci.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 0def898a1d15..6109da5d883c 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -48,6 +48,9 @@ extern int __init bcma_host_pci_init(void);
48extern void __exit bcma_host_pci_exit(void); 48extern void __exit bcma_host_pci_exit(void);
49#endif /* CONFIG_BCMA_HOST_PCI */ 49#endif /* CONFIG_BCMA_HOST_PCI */
50 50
51/* driver_pci.c */
52u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
53
51#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE 54#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
52void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); 55void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
53#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ 56#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c
index fc462b4a0990..22dc9fca6dcb 100644
--- a/drivers/bcma/driver_pci.c
+++ b/drivers/bcma/driver_pci.c
@@ -17,7 +17,7 @@
17 * R/W ops. 17 * R/W ops.
18 **************************************************/ 18 **************************************************/
19 19
20static u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) 20u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address)
21{ 21{
22 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); 22 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address);
23 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); 23 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR);