Commit 3f644285 authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman

staging: wilc1000: linux_spi_init: remove parameter vp

This patch removes function parameter vp which is not used and modify it's
related codes.
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4bffadb0
...@@ -1566,7 +1566,7 @@ int wilc_netdev_init(struct wilc **wilc) ...@@ -1566,7 +1566,7 @@ int wilc_netdev_init(struct wilc **wilc)
} }
#ifndef WILC_SDIO #ifndef WILC_SDIO
if (!linux_spi_init(&g_linux_wlan->wilc_spidev)) { if (!linux_spi_init()) {
PRINT_ER("Can't initialize SPI\n"); PRINT_ER("Can't initialize SPI\n");
return -1; return -1;
} }
......
...@@ -93,7 +93,7 @@ void linux_spi_deinit(void *vp) ...@@ -93,7 +93,7 @@ void linux_spi_deinit(void *vp)
int linux_spi_init(void *vp) int linux_spi_init(void)
{ {
int ret = 1; int ret = 1;
static int called; static int called;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
extern struct spi_device *wilc_spi_dev; extern struct spi_device *wilc_spi_dev;
extern struct spi_driver wilc_bus; extern struct spi_driver wilc_bus;
int linux_spi_init(void *vp); int linux_spi_init(void);
void linux_spi_deinit(void *vp); void linux_spi_deinit(void *vp);
int linux_spi_write(u8 *b, u32 len); int linux_spi_write(u8 *b, u32 len);
int linux_spi_read(u8 *rb, u32 rlen); int linux_spi_read(u8 *rb, u32 rlen);
......
...@@ -966,7 +966,7 @@ static int wilc_spi_init(wilc_wlan_inp_t *inp, wilc_debug_func func) ...@@ -966,7 +966,7 @@ static int wilc_spi_init(wilc_wlan_inp_t *inp, wilc_debug_func func)
g_spi.dPrint = func; g_spi.dPrint = func;
g_spi.os_context = inp->os_context.os_private; g_spi.os_context = inp->os_context.os_private;
if (!linux_spi_init(g_spi.os_context)) { if (!linux_spi_init()) {
PRINT_ER("[wilc spi]: Failed io init bus...\n"); PRINT_ER("[wilc spi]: Failed io init bus...\n");
return 0; return 0;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment