mmc: block: Make card_busy_detect() a bit more generic
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 5 Sep 2019 07:53:17 +0000 (15:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 10:04:22 +0000 (11:04 +0100)
commit0cc2b0e6e5b6b9ff105115ce4d6dfdb2c8165b27
treee80bd98c66026a4af7046e10c99ac1db3f912616
parent9b39b507a1539124e780745b2480de7386fc18c5
mmc: block: Make card_busy_detect() a bit more generic

commit 3869468e0c4800af52bfe1e0b72b338dcdae2cfc upstream.

To prepare for more users of card_busy_detect(), let's drop the struct
request * as an in-parameter and convert to log the error message via
dev_err() instead of pr_err().

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/block.c