This patch removes function parameter vp which is not used and modify it's
related codes.
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
}
#ifndef WILC_SDIO
- if (!linux_spi_init(&g_linux_wlan->wilc_spidev)) {
+ if (!linux_spi_init()) {
PRINT_ER("Can't initialize SPI\n");
return -1;
}
-int linux_spi_init(void *vp)
+int linux_spi_init(void)
{
int ret = 1;
static int called;
extern struct spi_device *wilc_spi_dev;
extern struct spi_driver wilc_bus;
-int linux_spi_init(void *vp);
+int linux_spi_init(void);
void linux_spi_deinit(void *vp);
int linux_spi_write(u8 *b, u32 len);
int linux_spi_read(u8 *rb, u32 rlen);
g_spi.dPrint = func;
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");
return 0;
} else {