From: 张晴 Date: Fri, 21 Mar 2014 09:46:38 +0000 (+0800) Subject: rk3288:pwm_regulator:set pwm_vol 1.0v when pwm_regulator_init X-Git-Tag: firefly_0821_release~5924 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fc3bb66391188134a5b11f2a8a60c812c36e8875;p=firefly-linux-kernel-4.4.55.git rk3288:pwm_regulator:set pwm_vol 1.0v when pwm_regulator_init --- diff --git a/drivers/regulator/rockchip-pwm-regulator.c b/drivers/regulator/rockchip-pwm-regulator.c index 78451a795e21..15d3acfcfc95 100755 --- a/drivers/regulator/rockchip-pwm-regulator.c +++ b/drivers/regulator/rockchip-pwm-regulator.c @@ -35,7 +35,7 @@ #include -#if 1 +#if 0 #define DBG(x...) printk(KERN_INFO x) #else #define DBG(x...) @@ -369,12 +369,14 @@ static int __init pwm_regulator_probe(struct platform_device *pdev) goto err; } pdata->rdev[i] = pwm_rdev; + + /*********set pwm vol by defult***********/ + dc = regulator_get(NULL,rail_name); + regulator_set_voltage(dc,pdata->pwm_voltage,pdata->pwm_voltage); + regulator_put(dc); + /**************************************/ } } - /*********set pwm vol by defult***********/ - //dc = regulator_get(NULL,"vdd_gpu"); - //regulator_set_voltage(dc,pdata->pwm_voltage,pdata->pwm_voltage); - /**************************************/ return 0; err: printk("%s:error\n",__func__);