aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/sdio.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2011-07-16 10:59:12 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-08-09 12:45:19 -0400
commitac2bba019b2b677882d9ea7846a1fdf7c9fd8959 (patch)
treec0d7ef68c272901ff1abce7584070f0d0f826ee4 /drivers/net/wireless/ath/ath6kl/sdio.c
parentdef85c00c97e062995dbf4e979c4bffa8a103b0f (diff)
ath6kl: Cleanup ath6kl_sdio_cleanup_scatter()
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/sdio.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/sdio.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 5de3884d17c0..797a39fb0dfb 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -319,8 +319,9 @@ static int ath6kl_sdio_alloc_prep_scat_req(struct ath6kl_sdio *ar_sdio,
319} 319}
320 320
321/* clean up scatter support */ 321/* clean up scatter support */
322static void ath6kl_sdio_cleanup_scat_resource(struct ath6kl_sdio *ar_sdio) 322static void ath6kl_sdio_cleanup_scatter(struct ath6kl *ar)
323{ 323{
324 struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar);
324 struct hif_scatter_req *s_req, *tmp_req; 325 struct hif_scatter_req *s_req, *tmp_req;
325 unsigned long flag; 326 unsigned long flag;
326 327
@@ -365,7 +366,7 @@ static int ath6kl_sdio_enable_scatter(struct ath6kl *ar,
365 MAX_SCATTER_REQUESTS, 0); 366 MAX_SCATTER_REQUESTS, 0);
366 if (ret) { 367 if (ret) {
367 ath6kl_err("hif-scatter: failed to alloc scatter resources !\n"); 368 ath6kl_err("hif-scatter: failed to alloc scatter resources !\n");
368 ath6kl_sdio_cleanup_scat_resource(ar_sdio); 369 ath6kl_sdio_cleanup_scatter(ar);
369 return ret; 370 return ret;
370 } 371 }
371 372
@@ -657,13 +658,6 @@ static int ath6kl_sdio_async_rw_scatter(struct ath6kl *ar,
657 return status; 658 return status;
658} 659}
659 660
660static void ath6kl_sdio_cleanup_scatter(struct ath6kl *ar)
661{
662 struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar);
663
664 ath6kl_sdio_cleanup_scat_resource(ar_sdio);
665}
666
667static const struct ath6kl_hif_ops ath6kl_sdio_ops = { 661static const struct ath6kl_hif_ops ath6kl_sdio_ops = {
668 .read_write_sync = ath6kl_sdio_read_write_sync, 662 .read_write_sync = ath6kl_sdio_read_write_sync,
669 .write_async = ath6kl_sdio_write_async, 663 .write_async = ath6kl_sdio_write_async,