]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: add the device name in debugging message for supplying vmmc
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Oct 2016 06:22:22 +0000 (15:22 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 28 Oct 2016 02:02:16 +0000 (11:02 +0900)
If vmmc didn't supply, we didn't know which card didn't supply vmmc.
And changed from "put" to "debug".

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc.c

index 320413aeeda58cbc4fd347d380cd062e435bdbad..4380c7c195a628e343f1f0b4719be6b6bbf3fdb3 100644 (file)
@@ -1595,7 +1595,7 @@ static int mmc_power_init(struct mmc *mmc)
        ret = device_get_supply_regulator(mmc->dev, "vmmc-supply",
                                          &vmmc_supply);
        if (ret) {
-               puts("No vmmc supply\n");
+               debug("%s: No vmmc supply\n", mmc->dev->name);
                return 0;
        }