ath6kl: Cleanup ath6kl_sdio_enable_scatter()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Sat, 16 Jul 2011 14:59:11 +0000 (20:29 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:19 +0000 (19:45 +0300)
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/sdio.c

index 36f25fc457487f54762d3afcb059eac3c2888ab6..5de3884d17c08314bdb6a5983cae3a9618ef037a 100644 (file)
@@ -342,9 +342,10 @@ static void ath6kl_sdio_cleanup_scat_resource(struct ath6kl_sdio *ar_sdio)
 }
 
 /* setup of HIF scatter resources */
-static int ath6kl_sdio_setup_scat_resource(struct ath6kl_sdio *ar_sdio,
-                                          struct hif_dev_scat_sup_info *pinfo)
+static int ath6kl_sdio_enable_scatter(struct ath6kl *ar,
+                                     struct hif_dev_scat_sup_info *pinfo)
 {
+       struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar);
        int ret = 0;
 
        /* check if host supports scatter and it meets our requirements */
@@ -626,17 +627,6 @@ static void ath6kl_sdio_scatter_req_add(struct ath6kl *ar,
 
 }
 
-static int ath6kl_sdio_enable_scatter(struct ath6kl *ar,
-                                     struct hif_dev_scat_sup_info *info)
-{
-       struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar);
-       int ret;
-
-       ret = ath6kl_sdio_setup_scat_resource(ar_sdio, info);
-
-       return ret;
-}
-
 /* scatter gather read write request */
 static int ath6kl_sdio_async_rw_scatter(struct ath6kl *ar,
                                        struct hif_scatter_req *scat_req)