]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ram: k3-am654: Make VTT regulator optional
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 23 Mar 2022 15:04:28 +0000 (16:04 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 4 Apr 2022 23:02:04 +0000 (19:02 -0400)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/ram/k3-am654-ddrss.c

index a48ebe6ada8f1d5388401c0cc39476b734b912ee..4453c247b2984c7c2e389bafe784e21b72c36939 100644 (file)
@@ -884,9 +884,8 @@ static int am654_ddrss_power_on(struct am654_ddrss_desc *ddrss)
        device_get_supply_regulator(ddrss->dev, "vtt-supply",
                                    &ddrss->vtt_supply);
        ret = regulator_set_value(ddrss->vtt_supply, 3300000);
-       if (ret)
-               return ret;
-       debug("VTT regulator enabled\n");
+       if (ret == 0)
+               debug("VTT regulator enabled\n");
 #endif
 
        return 0;