]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: brcm80211: absorb brcmf_sdioh_abort into brcmf_sdcard_abort
authorFranky Lin <frankyl@broadcom.com>
Fri, 12 Aug 2011 13:34:56 +0000 (15:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:06:39 +0000 (13:06 -0700)
brcmfmac wrapper function cleanup

Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/bcmsdh.c
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c
drivers/staging/brcm80211/brcmfmac/sdio_host.h

index 6c1b57d2faa5075412a7cea1b480ea154b7e899b..8bb84a98566de319d5758c1e2feeedcf2c6a224d 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/pci_ids.h>
 #include <linux/sched.h>
 #include <linux/completion.h>
+#include <linux/mmc/sdio.h>
 #include <linux/mmc/sdio_func.h>
 #include <linux/mmc/card.h>
 
@@ -476,7 +477,15 @@ int brcmf_sdcard_rwdata(struct brcmf_sdio_dev *sdiodev, uint rw, u32 addr,
 
 int brcmf_sdcard_abort(struct brcmf_sdio_dev *sdiodev, uint fn)
 {
-       return brcmf_sdioh_abort(sdiodev, fn);
+       char t_func = (char)fn;
+       BRCMF_TRACE(("%s: Enter\n", __func__));
+
+       /* issue abort cmd52 command through F0 */
+       brcmf_sdioh_request_byte(sdiodev, SDIOH_WRITE, SDIO_FUNC_0,
+                                SDIO_CCCR_ABORT, &t_func);
+
+       BRCMF_TRACE(("%s: Exit\n", __func__));
+       return 0;
 }
 
 u32 brcmf_sdcard_cur_sbwad(struct brcmf_sdio_dev *sdiodev)
index 1dfad3e13e0c3243c21efdb10e6f888cff5692fe..d7648f867c9b526a228fdf00cc6fedeba47fca5a 100644 (file)
@@ -576,20 +576,6 @@ brcmf_sdioh_request_buffer(struct brcmf_sdio_dev *sdiodev, uint pio_dma,
        return Status;
 }
 
-/* this function performs "abort" for both of host & device */
-extern int brcmf_sdioh_abort(struct brcmf_sdio_dev *sdiodev, uint func)
-{
-       char t_func = (char)func;
-       BRCMF_TRACE(("%s: Enter\n", __func__));
-
-       /* issue abort cmd52 command through F0 */
-       brcmf_sdioh_request_byte(sdiodev, SDIOH_WRITE, SDIO_FUNC_0,
-                                SDIO_CCCR_ABORT, &t_func);
-
-       BRCMF_TRACE(("%s: Exit\n", __func__));
-       return 0;
-}
-
 /* Read client card reg */
 int
 brcmf_sdioh_card_regread(struct brcmf_sdio_dev *sdiodev, int func, u32 regaddr,
index d9803071d033d8e96c7383801546a1848c272f5b..555f17bab9a1488e5cdebf9ce16368a29079fb00 100644 (file)
@@ -273,9 +273,6 @@ extern int brcmf_sdioh_cfg_read(struct brcmf_sdio_dev *sdiodev, uint fuc,
 extern int brcmf_sdioh_cfg_write(struct brcmf_sdio_dev *sdiodev, uint fuc,
                                 u32 addr, u8 *data);
 
-/* Issue abort to the specified function and clear controller as needed */
-extern int brcmf_sdioh_abort(struct brcmf_sdio_dev *sdiodev, uint fnc);
-
 /* Watchdog timer interface for pm ops */
 extern void brcmf_sdio_wdtmr_enable(struct brcmf_sdio_dev *sdiodev,
                                    bool enable);