mmc: core: Remove mmc_set_blockcount() function again

Commit af02b05e59 ("mmc: add thunder boot support")
add this function wrong. So just remove it.

Fixes: af02b05e59 ("mmc: add thunder boot support")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9177c615163826e3df2ba692e63f9aadf48ef912
This commit is contained in:
Tao Huang
2021-08-04 19:29:37 +08:00
parent 54ce82775f
commit 86bc3558a7

View File

@@ -2055,20 +2055,6 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen)
}
EXPORT_SYMBOL(mmc_set_blocklen);
int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount,
bool is_rel_write)
{
struct mmc_command cmd = {};
cmd.opcode = MMC_SET_BLOCK_COUNT;
cmd.arg = blockcount & 0x0000FFFF;
if (is_rel_write)
cmd.arg |= 1 << 31;
cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC;
return mmc_wait_for_cmd(card->host, &cmd, 5);
}
EXPORT_SYMBOL(mmc_set_blockcount);
#ifndef CONFIG_ROCKCHIP_THUNDER_BOOT
static void mmc_hw_reset_for_init(struct mmc_host *host)
{