rtc: ds1511: clean up ds1511_nvram_read()/ds1511_nvram_write()
[cascardo/linux.git] / drivers / regulator / of_regulator.c
index b1c485b..250700c 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: