regulator: add regen regulator
[pandora-kernel.git] / drivers / mfd / twl-core.c
index 5182f6d..9b1df0b 100644 (file)
@@ -985,6 +985,11 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
                                        features);
                if (IS_ERR(child))
                        return PTR_ERR(child);
+
+               child = add_regulator(TWL4030_REG_REGEN, pdata->regen,
+                                       features);
+               if (IS_ERR(child))
+                       return PTR_ERR(child);
        }
 
        /* maybe add LDOs that are omitted on cost-reduced parts */