aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bcma')
-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 0def898a1d1..6109da5d883 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 fc462b4a099..22dc9fca6dc 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);