Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
[firefly-linux-kernel-4.4.55.git] / drivers / regulator / of_regulator.c
index b1c485b24ab246234edbab2dfb4217e4fe1df833..250700c853bfa524991f6721256fb02876f54799 100644 (file)
@@ -107,6 +107,9 @@ static void of_get_regulation_constraints(struct device_node *np,
        if (!of_property_read_u32(np, "regulator-system-load", &pval))
                constraints->system_load = pval;
 
+       constraints->over_current_protection = of_property_read_bool(np,
+                                       "regulator-over-current-protection");
+
        for (i = 0; i < ARRAY_SIZE(regulator_states); i++) {
                switch (i) {
                case PM_SUSPEND_MEM: