aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-mmc/sd.c
diff options
context:
space:
mode:
authorChristian Lütke-Stetzkamp <christian@lkamp.de>2018-04-29 19:32:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-06 19:08:07 -0700
commit32a966cb00abc1e99226cf571ed9b0a94599effd (patch)
tree080e7ad8396975c9c6ab26055e83e4f844cb1eec /drivers/staging/mt7621-mmc/sd.c
parentstaging: mt7621-mmc: Remove initialisation in msdc_dma_config (diff)
downloadlinux-dev-32a966cb00abc1e99226cf571ed9b0a94599effd.tar.xz
linux-dev-32a966cb00abc1e99226cf571ed9b0a94599effd.zip
staging: mt7621-mmc: Inline function msdc_set_blknum
The function msdc_set_blknum consists of one (real) line of code and is only called once, so inline it makes the code shorter and more readable. Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-mmc/sd.c')
-rw-r--r--drivers/staging/mt7621-mmc/sd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c
index c9f0180f3220..00c862b02419 100644
--- a/drivers/staging/mt7621-mmc/sd.c
+++ b/drivers/staging/mt7621-mmc/sd.c
@@ -1182,14 +1182,6 @@ static void msdc_dma_setup(struct msdc_host *host, struct msdc_dma *dma,
msdc_dma_config(host, dma);
}
-/* set block number before send command */
-static void msdc_set_blknum(struct msdc_host *host, u32 blknum)
-{
- void __iomem *base = host->base;
-
- sdr_write32(SDC_BLK_NUM, blknum);
-}
-
static int msdc_do_request(struct mmc_host *mmc, struct mmc_request *mrq)
__must_hold(&host->lock)
{
@@ -1239,7 +1231,7 @@ static int msdc_do_request(struct mmc_host *mmc, struct mmc_request *mrq)
}
}
- msdc_set_blknum(host, data->blocks);
+ sdr_write32(SDC_BLK_NUM, data->blocks);
//msdc_clr_fifo(); /* no need */
msdc_dma_on(); /* enable DMA mode first!! */