mmc: core: refactor asynchronous request finalization
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Mar 2017 08:40:30 +0000 (10:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:07 +0000 (21:42 +0200)
commit0e72f95bf329dea7985f0f4ac81cc888e8b79797
tree82e07061ab1f27bb54a6a0141c062d4b53871967
parent5744d50d2d9e7efdae4b5d13cd71f49256ada6ba
mmc: core: refactor asynchronous request finalization

mmc_wait_for_data_req_done() is called in exactly one place,
and having it spread out is making things hard to oversee.
Factor this function into mmc_finalize_areq().

Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c