Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rafał Miłecki and committed by
Kalle Valo
0a4e699a c32ec2a1

+41 -36
+41
drivers/bcma/bcma_private.h
··· 43 43 int bcma_sprom_get(struct bcma_bus *bus); 44 44 45 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 49 #ifdef CONFIG_BCMA_DRIVER_MIPS 47 50 void bcma_chipco_serial_init(struct bcma_drv_cc *cc); 48 51 extern struct platform_device bcma_pflash_dev; ··· 56 53 void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb); 57 54 58 55 /* driver_chipcommon_pmu.c */ 56 + void bcma_pmu_early_init(struct bcma_drv_cc *cc); 57 + void bcma_pmu_init(struct bcma_drv_cc *cc); 59 58 u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc); 60 59 u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc); 61 60 ··· 107 102 108 103 /* driver_pci.c */ 109 104 u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); 105 + void bcma_core_pci_early_init(struct bcma_drv_pci *pc); 106 + void bcma_core_pci_init(struct bcma_drv_pci *pc); 110 107 void bcma_core_pci_up(struct bcma_drv_pci *pc); 111 108 void bcma_core_pci_down(struct bcma_drv_pci *pc); 112 109 113 110 /* driver_pcie2.c */ 111 + void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2); 114 112 void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2); 115 113 116 114 extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); ··· 130 122 { 131 123 } 132 124 #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ 125 + 126 + /************************************************** 127 + * driver_mips.c 128 + **************************************************/ 129 + 130 + #ifdef CONFIG_BCMA_DRIVER_MIPS 131 + unsigned int bcma_core_mips_irq(struct bcma_device *dev); 132 + void bcma_core_mips_early_init(struct bcma_drv_mips *mcore); 133 + void bcma_core_mips_init(struct bcma_drv_mips *mcore); 134 + #else 135 + static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev) 136 + { 137 + return 0; 138 + } 139 + static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) 140 + { 141 + } 142 + static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) 143 + { 144 + } 145 + #endif 146 + 147 + /************************************************** 148 + * driver_gmac_cmn.c 149 + **************************************************/ 150 + 151 + #ifdef CONFIG_BCMA_DRIVER_GMAC_CMN 152 + void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); 153 + #else 154 + static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) 155 + { 156 + } 157 + #endif 133 158 134 159 #ifdef CONFIG_BCMA_DRIVER_GPIO 135 160 /* driver_gpio.c */
-11
include/linux/bcma/bcma_driver_chipcommon.h
··· 663 663 #define bcma_cc_maskset32(cc, offset, mask, set) \ 664 664 bcma_cc_write32(cc, offset, (bcma_cc_read32(cc, offset) & (mask)) | (set)) 665 665 666 - extern void bcma_core_chipcommon_init(struct bcma_drv_cc *cc); 667 - extern void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc); 668 - 669 - extern void bcma_chipco_suspend(struct bcma_drv_cc *cc); 670 - extern void bcma_chipco_resume(struct bcma_drv_cc *cc); 671 - 672 - void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable); 673 - 674 666 extern u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks); 675 667 676 668 extern u32 bcma_chipco_get_alp_clock(struct bcma_drv_cc *cc); ··· 682 690 u32 bcma_chipco_gpio_pulldown(struct bcma_drv_cc *cc, u32 mask, u32 value); 683 691 684 692 /* PMU support */ 685 - extern void bcma_pmu_init(struct bcma_drv_cc *cc); 686 - extern void bcma_pmu_early_init(struct bcma_drv_cc *cc); 687 - 688 693 extern void bcma_chipco_pll_write(struct bcma_drv_cc *cc, u32 offset, 689 694 u32 value); 690 695 extern void bcma_chipco_pll_maskset(struct bcma_drv_cc *cc, u32 offset,
-6
include/linux/bcma/bcma_driver_gmac_cmn.h
··· 91 91 #define gmac_cmn_write16(gc, offset, val) bcma_write16((gc)->core, offset, val) 92 92 #define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val) 93 93 94 - #ifdef CONFIG_BCMA_DRIVER_GMAC_CMN 95 - extern void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc); 96 - #else 97 - static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) { } 98 - #endif 99 - 100 94 #endif /* LINUX_BCMA_DRIVER_GMAC_CMN_H_ */
-15
include/linux/bcma/bcma_driver_mips.h
··· 39 39 u8 early_setup_done:1; 40 40 }; 41 41 42 - #ifdef CONFIG_BCMA_DRIVER_MIPS 43 - extern void bcma_core_mips_init(struct bcma_drv_mips *mcore); 44 - extern void bcma_core_mips_early_init(struct bcma_drv_mips *mcore); 45 - 46 - extern unsigned int bcma_core_mips_irq(struct bcma_device *dev); 47 - #else 48 - static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) { } 49 - static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) { } 50 - 51 - static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev) 52 - { 53 - return 0; 54 - } 55 - #endif 56 - 57 42 extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore); 58 43 59 44 #endif /* LINUX_BCMA_DRIVER_MIPS_H_ */
-2
include/linux/bcma/bcma_driver_pci.h
··· 238 238 #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) 239 239 #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) 240 240 241 - extern void bcma_core_pci_early_init(struct bcma_drv_pci *pc); 242 - extern void bcma_core_pci_init(struct bcma_drv_pci *pc); 243 241 extern int bcma_core_pci_irq_ctl(struct bcma_bus *bus, 244 242 struct bcma_device *core, bool enable); 245 243 extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up);
-2
include/linux/bcma/bcma_driver_pcie2.h
··· 155 155 #define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set) 156 156 #define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask) 157 157 158 - void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2); 159 - 160 158 #endif /* LINUX_BCMA_DRIVER_PCIE2_H_ */