|
@@ -12,6 +12,7 @@
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/err.h>
|
|
|
+#include <linux/delay.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/regulator/driver.h>
|
|
|
#include <linux/regulator/machine.h>
|
|
@@ -134,6 +135,7 @@ static int twlreg_enable(struct regulator_dev *rdev)
|
|
|
{
|
|
|
struct twlreg_info *info = rdev_get_drvdata(rdev);
|
|
|
int grp;
|
|
|
+ int ret;
|
|
|
|
|
|
grp = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_GRP);
|
|
|
if (grp < 0)
|
|
@@ -144,7 +146,11 @@ static int twlreg_enable(struct regulator_dev *rdev)
|
|
|
else
|
|
|
grp |= P1_GRP_6030;
|
|
|
|
|
|
- return twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_GRP, grp);
|
|
|
+ ret = twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_GRP, grp);
|
|
|
+
|
|
|
+ udelay(info->delay);
|
|
|
+
|
|
|
+ return ret;
|
|
|
}
|
|
|
|
|
|
static int twlreg_disable(struct regulator_dev *rdev)
|