diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-03-04 08:24:52 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-05 07:11:43 -0500 |
commit | 0a4e699a41f767dff76ca7dc1019b9ca6de3eb42 (patch) | |
tree | c9070b81b7b760277685f0cc2b69c7e823e8cc82 /drivers/bcma | |
parent | c32ec2a11321978c34296d9a6bd5b0c31a2eb182 (diff) |
bcma: move internal function declarations to private header
These functions are not exported nor used anywhere, so there is no
reason to put them in public headers.
Also drop unused bcma_chipco_(suspend|resume).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/bcma_private.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index 29565e30700a..5a1d22489afc 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h | |||
@@ -43,6 +43,9 @@ int bcma_bus_scan(struct bcma_bus *bus); | |||
43 | int bcma_sprom_get(struct bcma_bus *bus); | 43 | int bcma_sprom_get(struct bcma_bus *bus); |
44 | 44 | ||
45 | /* driver_chipcommon.c */ | 45 | /* driver_chipcommon.c */ |
46 | void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc); | ||
47 | void bcma_core_chipcommon_init(struct bcma_drv_cc *cc); | ||
48 | void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable); | ||
46 | #ifdef CONFIG_BCMA_DRIVER_MIPS | 49 | #ifdef CONFIG_BCMA_DRIVER_MIPS |
47 | void bcma_chipco_serial_init(struct bcma_drv_cc *cc); | 50 | void bcma_chipco_serial_init(struct bcma_drv_cc *cc); |
48 | extern struct platform_device bcma_pflash_dev; | 51 | extern struct platform_device bcma_pflash_dev; |
@@ -53,6 +56,8 @@ int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb); | |||
53 | void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb); | 56 | void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb); |
54 | 57 | ||
55 | /* driver_chipcommon_pmu.c */ | 58 | /* driver_chipcommon_pmu.c */ |
59 | void bcma_pmu_early_init(struct bcma_drv_cc *cc); | ||
60 | void bcma_pmu_init(struct bcma_drv_cc *cc); | ||
56 | u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc); | 61 | u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc); |
57 | u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc); | 62 | u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc); |
58 | 63 | ||
@@ -102,10 +107,13 @@ static inline void __exit bcma_host_soc_unregister_driver(void) | |||
102 | 107 | ||
103 | /* driver_pci.c */ | 108 | /* driver_pci.c */ |
104 | u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); | 109 | u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); |
110 | void bcma_core_pci_early_init(struct bcma_drv_pci *pc); | ||
111 | void bcma_core_pci_init(struct bcma_drv_pci *pc); | ||
105 | void bcma_core_pci_up(struct bcma_drv_pci *pc); | 112 | void bcma_core_pci_up(struct bcma_drv_pci *pc); |
106 | void bcma_core_pci_down(struct bcma_drv_pci *pc); | 113 | void bcma_core_pci_down(struct bcma_drv_pci *pc); |
107 | 114 | ||
108 | /* driver_pcie2.c */ | 115 | /* driver_pcie2.c */ |
116 | void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2); | ||
109 | void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2); | 117 | void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2); |
110 | 118 | ||
111 | extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); | 119 | extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); |
@@ -123,6 +131,39 @@ static inline void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) | |||
123 | } | 131 | } |
124 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ | 132 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ |
125 | 133 | ||
134 | /************************************************** | ||
135 | * driver_mips.c | ||
136 | **************************************************/ | ||
137 | |||
138 | #ifdef CONFIG_BCMA_DRIVER_MIPS | ||
139 | unsigned int bcma_core_mips_irq(struct bcma_device *dev); | ||
140 | void bcma_core_mips_early_init(struct bcma_drv_mips *mcore); | ||
141 | void bcma_core_mips_init(struct bcma_drv_mips *mcore); | ||
142 | #else | ||
143 | static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev) | ||
144 | { | ||
145 | return 0; | ||
146 | } | ||
147 | static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) | ||
148 | { | ||
149 | } | ||
150 | static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) | ||
151 | { | ||
152 | } | ||
153 | #endif | ||
154 | |||
155 | /************************************************** | ||
156 | * driver_gmac_cmn.c | ||
157 | **************************************************/ | ||
158 | |||
159 | #ifdef CONFIG_BCMA_DRIVER_GMAC_CMN | ||
160 | void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); | ||
161 | #else | ||
162 | static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) | ||
163 | { | ||
164 | } | ||
165 | #endif | ||
166 | |||
126 | #ifdef CONFIG_BCMA_DRIVER_GPIO | 167 | #ifdef CONFIG_BCMA_DRIVER_GPIO |
127 | /* driver_gpio.c */ | 168 | /* driver_gpio.c */ |
128 | int bcma_gpio_init(struct bcma_drv_cc *cc); | 169 | int bcma_gpio_init(struct bcma_drv_cc *cc); |