staging: mt7621-mmc: Remove unused macro msdc_init_gpd_ex
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sun, 29 Apr 2018 17:32:20 +0000 (19:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:08:05 +0000 (19:08 -0700)
The macro msdc_init_gpd_ex is never used and does not provied any
information about the hardware, so it is removed.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index e94b2bafa8eb7d990e76b8c8357ce8b0e8e7a7f4..00dacf8c9625921f82b0d7b8f3ee061e3b39ac0d 100644 (file)
@@ -195,15 +195,6 @@ static int msdc_rsp[] = {
        7,  /* RESP_R1b */
 };
 
-/* For Inhanced DMA */
-#define msdc_init_gpd_ex(_gpd, extlen, cmd, arg, blknum) \
-       do {                                        \
-               ((struct gpd *)_gpd)->extlen = extlen;      \
-               ((struct gpd *)_gpd)->cmd    = cmd;         \
-               ((struct gpd *)_gpd)->arg    = arg;         \
-               ((struct gpd *)_gpd)->blknum = blknum;      \
-       } while (0)
-
 #define msdc_txfifocnt()   ((sdr_read32(MSDC_FIFOCS) & MSDC_FIFOCS_TXCNT) >> 16)
 #define msdc_rxfifocnt()   ((sdr_read32(MSDC_FIFOCS) & MSDC_FIFOCS_RXCNT) >> 0)
 #define msdc_fifo_write32(v)   sdr_write32(MSDC_TXDATA, (v))