diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-01-30 18:03:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:53:02 -0500 |
commit | 4b259a5cc5ea967fa243dfc1f95a59ae74106f5b (patch) | |
tree | 2d249388538e0086acf5969e5617715ed682cd4a /drivers | |
parent | 2be25cac8402fab56bb51166f464d1b420bcf744 (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.h | 3 | ||||
-rw-r--r-- | drivers/bcma/driver_pci.c | 2 |
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); | |||
48 | extern void __exit bcma_host_pci_exit(void); | 48 | extern 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 */ | ||
52 | u32 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 |
52 | void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); | 55 | void 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 | ||
20 | static u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) | 20 | u32 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); |