wm8994 add 50ms delay between wm_en and i2c read register in device setup
author宋秀杰 <sxj@rock-chips.com>
Thu, 16 Feb 2012 10:10:08 +0000 (18:10 +0800)
committer宋秀杰 <sxj@rock-chips.com>
Thu, 16 Feb 2012 10:10:08 +0000 (18:10 +0800)
drivers/regulator/wm8994-regulator.c

index 91c8043fc5766f0c495debd5fa43070fb48c911f..348bfa844439dd6e7676cddf844dfe3c31105734 100755 (executable)
@@ -21,6 +21,7 @@
 #include <linux/gpio.h>
 #include <linux/slab.h>
 
+#include <linux/delay.h>
 #include <linux/mfd/wm8994/core.h>
 #include <linux/mfd/wm8994/registers.h>
 #include <linux/mfd/wm8994/pdata.h>
@@ -258,6 +259,7 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
                                ret);
                        goto err_gpio;
                }
+               msleep(50);
        } else
                ldo->is_enabled = true;