diff options
author | Pramod Gurav <pramod.gurav@smartplayin.com> | 2015-01-28 00:49:47 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 03:17:56 -0500 |
commit | c72599bf4a92354ec6366820115ea040cc9e7358 (patch) | |
tree | aa26484ccfec6f5d7dfc99d2c3dabe033b8eefef /drivers/ssb/main.c | |
parent | 4165fe9a9287aa9c8e7e4152c21ee179d49d129e (diff) |
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>
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r-- | drivers/ssb/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 2fead3820849..1e180c400f17 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
@@ -90,25 +90,6 @@ found: | |||
90 | } | 90 | } |
91 | #endif /* CONFIG_SSB_PCMCIAHOST */ | 91 | #endif /* CONFIG_SSB_PCMCIAHOST */ |
92 | 92 | ||
93 | #ifdef CONFIG_SSB_SDIOHOST | ||
94 | struct ssb_bus *ssb_sdio_func_to_bus(struct sdio_func *func) | ||
95 | { | ||
96 | struct ssb_bus *bus; | ||
97 | |||
98 | ssb_buses_lock(); | ||
99 | list_for_each_entry(bus, &buses, list) { | ||
100 | if (bus->bustype == SSB_BUSTYPE_SDIO && | ||
101 | bus->host_sdio == func) | ||
102 | goto found; | ||
103 | } | ||
104 | bus = NULL; | ||
105 | found: | ||
106 | ssb_buses_unlock(); | ||
107 | |||
108 | return bus; | ||
109 | } | ||
110 | #endif /* CONFIG_SSB_SDIOHOST */ | ||
111 | |||
112 | int ssb_for_each_bus_call(unsigned long data, | 93 | int ssb_for_each_bus_call(unsigned long data, |
113 | int (*func)(struct ssb_bus *bus, unsigned long data)) | 94 | int (*func)(struct ssb_bus *bus, unsigned long data)) |
114 | { | 95 | { |