summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Lee <glen.lee@atmel.com>2015-11-06 18:40:15 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-15 20:02:47 -0800
commitfae26065d2d62404add16e26818e2506bd864ae4 (patch)
tree4d59564fb407521bf65a5a8fcbab2bde5347cfad
parent6f617f22cfdc8c9e19c763c22bfde6f9eef27308 (diff)
downloadlinux-fae26065d2d62404add16e26818e2506bd864ae4.tar.bz2
staging: wilc1000: remove function pointer spi_max_speed
This patch removes function pointer spi_max_speed of wilc_spi_t and just call the function linux_spi_set_max_speed directly. Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wilc1000/wilc_spi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c
index 789635b8c230..bda7b10a52a0 100644
--- a/drivers/staging/wilc1000/wilc_spi.c
+++ b/drivers/staging/wilc1000/wilc_spi.c
@@ -14,7 +14,6 @@
typedef struct {
void *os_context;
- int (*spi_max_speed)(void);
wilc_debug_func dPrint;
int crc_off;
int nint;
@@ -975,7 +974,6 @@ static int wilc_spi_init(wilc_wlan_inp_t *inp, wilc_debug_func func)
} else {
return 0;
}
- g_spi.spi_max_speed = inp->io_func.u.spi.spi_max_speed;
/**
* configure protocol
@@ -1025,7 +1023,7 @@ static int wilc_spi_init(wilc_wlan_inp_t *inp, wilc_debug_func func)
static void wilc_spi_max_bus_speed(void)
{
- g_spi.spi_max_speed();
+ linux_spi_set_max_speed();
}
static void wilc_spi_default_bus_speed(void)