]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00251849-2 ldo_bypass:print the ldo_bypass mode directly, not obscure number
authorRobin Gong <b38343@freescale.com>
Tue, 26 Feb 2013 08:10:54 +0000 (16:10 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:54 +0000 (08:35 +0200)
You can see "cpu regulator mode:ldo_bypass" log directly from console when boot.
not "cpu regulator init ldo=1" before.
Signed-off-by: Robin Gong <b38343@freescale.com>
arch/arm/mach-mx6/cpu_regulator-mx6.c

index 59bc3832d00fcd437081fb68f6d5d620524f8db6..0e91c8c9d29d2d566bb4febbc0d3a20be9f98920 100644 (file)
@@ -85,7 +85,8 @@ void mx6_cpu_regulator_init(void)
                soc_reg_id = "cpu_vddsoc";
                pu_reg_id = "cpu_vddgpu";
        }
-       printk(KERN_INFO "cpu regulator init ldo=%x\n", enable_ldo_mode);
+       printk(KERN_INFO "cpu regulator mode:%s\n", (enable_ldo_mode ==
+               LDO_MODE_BYPASSED) ? "ldo_bypass" : "ldo_enable");
        cpu_regulator = regulator_get(NULL, gp_reg_id);
        if (IS_ERR(cpu_regulator))
                printk(KERN_ERR "%s: failed to get cpu regulator\n", __func__);