diff options
author | Yi Li <yi.li@analog.com> | 2009-02-05 15:31:57 +0800 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2009-02-18 06:27:33 +0100 |
commit | 444122fd58fdc83c96877a92b3f6288cafddb08d (patch) | |
tree | 5d9fc37a7fd352d0caf74bc8dd2d8ba7526e7cd3 /drivers/mmc | |
parent | d2f8d7ee1a9b4650b4e43325b321801264f7c37a (diff) | |
download | linux-444122fd58fdc83c96877a92b3f6288cafddb08d.tar.gz linux-444122fd58fdc83c96877a92b3f6288cafddb08d.tar.bz2 linux-444122fd58fdc83c96877a92b3f6288cafddb08d.zip |
MMC: fix bug - SDHC card capacity not correct
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/card/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 45b1f430685f..513eb09a638f 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -584,7 +584,7 @@ static int mmc_blk_probe(struct mmc_card *card) if (err) 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)); printk(KERN_INFO "%s: %s %s %s %s\n", md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), |