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

ssb: make ssb_sdio_switch_core static

It's used locally only.

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
7b1647bc 44f3fd27

+1 -7
+1 -1
drivers/ssb/sdio.c
··· 200 200 } 201 201 202 202 /* host must be already claimed */ 203 - int ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev) 203 + static int ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev) 204 204 { 205 205 u8 coreidx = dev->core_index; 206 206 u32 sbaddr;
-6
drivers/ssb/ssb_private.h
··· 132 132 struct ssb_init_invariants *iv); 133 133 134 134 extern u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset); 135 - extern int ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev); 136 135 extern int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx); 137 136 extern int ssb_sdio_hardware_setup(struct ssb_bus *bus); 138 137 extern void ssb_sdio_exit(struct ssb_bus *bus); ··· 140 141 extern const struct ssb_bus_ops ssb_sdio_ops; 141 142 #else /* CONFIG_SSB_SDIOHOST */ 142 143 static inline u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) 143 - { 144 - return 0; 145 - } 146 - static inline int ssb_sdio_switch_core(struct ssb_bus *bus, 147 - struct ssb_device *dev) 148 144 { 149 145 return 0; 150 146 }