[U-Boot] [PATCH 4/4] imx: mx6: Set Pfuze mode to decrease power number for DSM

Fabio Estevam festevam at gmail.com
Wed Sep 10 14:14:54 CEST 2014


On Wed, Sep 10, 2014 at 6:08 AM, Ye.Li <B37916 at freescale.com> wrote:

> +       value = 0xc;
> +       if (pmic_reg_write(p, 0x23, value)) {
> +               printf("Set SW1AB mode error!\n");
> +               return -1;
> +       }

-1 is not a proper return code here.

You could do this instead:

ret = pmic_reg_write(p, 0x23, value)
if (ret) {
        printf("Set SW1AB mode error: %d\n", ret);
        return ret;
}

Same applies for other parts.


More information about the U-Boot mailing list