Commit 444122fd authored by Yi Li's avatar Yi Li Committed by Pierre Ossman

MMC: fix bug - SDHC card capacity not correct

Signed-off-by: default avatarYi Li <yi.li@analog.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent d2f8d7ee
...@@ -584,7 +584,7 @@ static int mmc_blk_probe(struct mmc_card *card) ...@@ -584,7 +584,7 @@ static int mmc_blk_probe(struct mmc_card *card)
if (err) if (err)
goto out; goto out;
string_get_size(get_capacity(md->disk) << 9, STRING_UNITS_2, string_get_size((u64)get_capacity(md->disk) << 9, STRING_UNITS_2,
cap_str, sizeof(cap_str)); cap_str, sizeof(cap_str));
printk(KERN_INFO "%s: %s %s %s %s\n", printk(KERN_INFO "%s: %s %s %s %s\n",
md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment