diff options
author | Glen Lee <glen.lee@atmel.com> | 2015-10-27 05:27:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 19:08:47 -0400 |
commit | 50b929e08ee09ceb6ffa8416af818bed358718f6 (patch) | |
tree | 23cb44e0389158012ce88409bcad7d8d58aefc99 | |
parent | ec5cc75061b4e6250e5dace58f236c1f567b99fd (diff) |
staging: wilc1000: wilc_handle_isr: add argument wilc to wilc_handle_isr
This patch add new argument wilc to wilc_handle_isr and pass wilc to
the function.
It is void type for now because wilc_wlan.c was implemented platform
independently at the beginning (linux_wlan.c is implementation of LINUX part),
so the header file which defines struct wilc cannot be included at this moment,
but this driver is dedicated to LINUX so wilc_wlan.c and linux_wlan.c will be
merged. After that, this void type will be changed with struct wilc as well as
other functions which are using void type in wilc_wlan.h.
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 2 | ||||
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan_sdio.c | 7 | ||||
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 2 | ||||
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.h | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index ac2bc0661b53..54e077dbbd84 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c | |||
@@ -261,7 +261,7 @@ irqreturn_t isr_bh_routine(int irq, void *userdata) | |||
261 | } | 261 | } |
262 | 262 | ||
263 | PRINT_D(INT_DBG, "Interrupt received BH\n"); | 263 | PRINT_D(INT_DBG, "Interrupt received BH\n"); |
264 | wilc_handle_isr(); | 264 | wilc_handle_isr(wilc); |
265 | 265 | ||
266 | return IRQ_HANDLED; | 266 | return IRQ_HANDLED; |
267 | } | 267 | } |
diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000/linux_wlan_sdio.c index 1f8d8743f376..4aff953a88f1 100644 --- a/drivers/staging/wilc1000/linux_wlan_sdio.c +++ b/drivers/staging/wilc1000/linux_wlan_sdio.c | |||
@@ -27,7 +27,6 @@ struct wilc_sdio { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | struct sdio_func *local_sdio_func; | 29 | struct sdio_func *local_sdio_func; |
30 | extern void wilc_handle_isr(void); | ||
31 | 30 | ||
32 | static unsigned int sdio_default_speed; | 31 | static unsigned int sdio_default_speed; |
33 | 32 | ||
@@ -42,9 +41,13 @@ static const struct sdio_device_id wilc_sdio_ids[] = { | |||
42 | 41 | ||
43 | static void wilc_sdio_interrupt(struct sdio_func *func) | 42 | static void wilc_sdio_interrupt(struct sdio_func *func) |
44 | { | 43 | { |
44 | struct wilc_sdio *wl_sdio; | ||
45 | |||
46 | wl_sdio = sdio_get_drvdata(func); | ||
47 | |||
45 | #ifndef WILC_SDIO_IRQ_GPIO | 48 | #ifndef WILC_SDIO_IRQ_GPIO |
46 | sdio_release_host(func); | 49 | sdio_release_host(func); |
47 | wilc_handle_isr(); | 50 | wilc_handle_isr(wl_sdio->wilc); |
48 | sdio_claim_host(func); | 51 | sdio_claim_host(func); |
49 | #endif | 52 | #endif |
50 | } | 53 | } |
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 67b0c52d97fa..be6f631f880e 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c | |||
@@ -1353,7 +1353,7 @@ _end_: | |||
1353 | wilc_wlan_handle_rxq(); | 1353 | wilc_wlan_handle_rxq(); |
1354 | } | 1354 | } |
1355 | 1355 | ||
1356 | void wilc_handle_isr(void) | 1356 | void wilc_handle_isr(void *wilc) |
1357 | { | 1357 | { |
1358 | u32 int_status; | 1358 | u32 int_status; |
1359 | 1359 | ||
diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h index bd89689fbf10..a07375ba38d7 100644 --- a/drivers/staging/wilc1000/wilc_wlan.h +++ b/drivers/staging/wilc1000/wilc_wlan.h | |||
@@ -301,7 +301,7 @@ int wilc_wlan_stop(void); | |||
301 | int wilc_wlan_txq_add_net_pkt(void *priv, u8 *buffer, u32 buffer_size, | 301 | int wilc_wlan_txq_add_net_pkt(void *priv, u8 *buffer, u32 buffer_size, |
302 | wilc_tx_complete_func_t func); | 302 | wilc_tx_complete_func_t func); |
303 | int wilc_wlan_handle_txq(u32 *pu32TxqCount); | 303 | int wilc_wlan_handle_txq(u32 *pu32TxqCount); |
304 | void wilc_handle_isr(void); | 304 | void wilc_handle_isr(void *wilc); |
305 | void wilc_wlan_cleanup(void); | 305 | void wilc_wlan_cleanup(void); |
306 | int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size, | 306 | int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size, |
307 | int commit, u32 drvHandler); | 307 | int commit, u32 drvHandler); |