mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
ssb: Fix Sparse error in main
This change fixes below sparse error: drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus' was not declared. Should it be static? Acked-by: Michael Buesch <m@bues.ch> Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
4165fe9a92
commit
c72599bf4a
1 changed files with 0 additions and 19 deletions
|
@ -90,25 +90,6 @@ struct ssb_bus *ssb_pcmcia_dev_to_bus(struct pcmcia_device *pdev)
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_SSB_PCMCIAHOST */
|
#endif /* CONFIG_SSB_PCMCIAHOST */
|
||||||
|
|
||||||
#ifdef CONFIG_SSB_SDIOHOST
|
|
||||||
struct ssb_bus *ssb_sdio_func_to_bus(struct sdio_func *func)
|
|
||||||
{
|
|
||||||
struct ssb_bus *bus;
|
|
||||||
|
|
||||||
ssb_buses_lock();
|
|
||||||
list_for_each_entry(bus, &buses, list) {
|
|
||||||
if (bus->bustype == SSB_BUSTYPE_SDIO &&
|
|
||||||
bus->host_sdio == func)
|
|
||||||
goto found;
|
|
||||||
}
|
|
||||||
bus = NULL;
|
|
||||||
found:
|
|
||||||
ssb_buses_unlock();
|
|
||||||
|
|
||||||
return bus;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_SSB_SDIOHOST */
|
|
||||||
|
|
||||||
int ssb_for_each_bus_call(unsigned long data,
|
int ssb_for_each_bus_call(unsigned long data,
|
||||||
int (*func)(struct ssb_bus *bus, unsigned long data))
|
int (*func)(struct ssb_bus *bus, unsigned long data))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue