summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2015-05-11 16:46:47 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2018-05-08 09:32:36 +0200
commitfb09f44e290b1775fbeadb4289dbcfc2f954b0d2 (patch)
tree9ed93d6a44a599ae3f3817ecc5723fd45590adab /drivers/mmc/core/core.h
parent5581cfcdccf139466c3a5f2ad5f58a09a1cd76f3 (diff)
downloadlinux-stable-fb09f44e290b1775fbeadb4289dbcfc2f954b0d2.tar.gz
linux-stable-fb09f44e290b1775fbeadb4289dbcfc2f954b0d2.tar.bz2
linux-stable-fb09f44e290b1775fbeadb4289dbcfc2f954b0d2.zip
mmc: core: Re-factor some code for SDIO re-initialization
The mmc_sdio_init_card() function has a couple of callers. In the re-initialization cases, some additional reset commands are issued before mmc_sdio_init_card() is called. As these additional reset commands are the same, let's move these into a new static function, mmc_sdio_reinit_card() and call mmc_sdio_init_card() from there. In this way we avoid the open coding. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Quentin Schulz <quentin.schulz@bootlin.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Diffstat (limited to 'drivers/mmc/core/core.h')
0 files changed, 0 insertions, 0 deletions