]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00271609 mmc: correct the wrong calculation of the boot size
authorRichard Zhu <r65037@freescale.com>
Thu, 18 Jul 2013 04:39:11 +0000 (12:39 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:15 +0000 (14:14 +0200)
The original calculation of the boot size is wrong.
Fix it by the right calculation.

Signed-off-by: Richard Zhu <r65037@freescale.com>
drivers/mmc/core/mmc.c

index 5c8fa764ca43a5c4c2b46d23fa412e4e5b8f4baa..2bd67d5271577ce65433532159cce15ca5691280 100644 (file)
@@ -840,7 +840,7 @@ static ssize_t mmc_boot_info_show(struct device *dev,
                        "Supports high speed timing during boot" :
                        "Does not support high speed timing during boot",
 
-               card->ext_csd.boot_size * 128,
+               card->ext_csd.boot_size >> 10,
 
                card->ext_csd.boot_config,
                !!(card->ext_csd.boot_config & 0x40),