From: Xu Ziyuan Date: Sat, 23 Jul 2016 03:11:22 +0000 (+0800) Subject: mmc: display mmc list information like mmc_legacy type X-Git-Tag: v2016.09-rc2~98^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1bd4f92cdbc5f120c962611dfaf11ed01829d7cb;p=oweals%2Fu-boot.git mmc: display mmc list information like mmc_legacy type It's nicer to see this: => mmc list dwmmc@ff0c0000: 0 dwmmc@ff0f0000: 1 (eMMC) than this: => mmc list dwmmc@ff0c0000: 0dwmmc@ff0f0000: 1 (eMMC) With the former, it's much clearer which mmc devices are on. Signed-off-by: Ziyuan Xu Acked-by: Simon Glass Reviewed-by: Jaehoon Chung Tested-by: Jaehoon Chung Signed-off-by: Jaehoon Chung --- diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index f262c6eb39..425abb1b9e 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -169,7 +169,7 @@ void print_mmc_devices(char separator) for (uclass_first_device(UCLASS_MMC, &dev); dev; - uclass_next_device(&dev)) { + uclass_next_device(&dev), first = false) { struct mmc *m = mmc_get_mmc_dev(dev); if (!first) {