mmc: block: Use __mmc_send_status() and drop get_card_status()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 22 May 2017 08:23:58 +0000 (10:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:27 +0000 (10:30 +0200)
commit2185bc2cd617de0a0b3b7c5a0ca42c82d0a15cff
treefedf4bac2821cda0002cefae3fa5e67c583fe941
parent0493f6fe5bdee8ac101a1a0c449971c2d4665e99
mmc: block: Use __mmc_send_status() and drop get_card_status()

The only reason to why the mmc block device driver needs to implements its
own version of how to get the status of the card, is that it needs to
specify a different amount of retries.

Therefore add a new exported function which allows the caller to specify
the number of retries and convert everybody to use it, as this simplifies
the code.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h