diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2011-06-21 05:38:59 +0200 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-07-08 20:14:57 +0200 |
commit | dbb48e7c3db4871803fc990864e37917e413ccb2 (patch) | |
tree | c639d1f3b883907639c350701c669ddb7443dc53 /drivers/bluetooth | |
parent | regulator: max8952 - fix wrong gpio valid check (diff) | |
download | linux-dbb48e7c3db4871803fc990864e37917e413ccb2.tar.xz linux-dbb48e7c3db4871803fc990864e37917e413ccb2.zip |
regulator: MAX8997: Fix for divide by zero error
Currently, ramp_delay variable is used uninitialzed in
max8997_set_voltage_ldobuck which gets called through
regulator_register calls.
To fix the problem, in max8997_pmic_probe, ramp_delay initialization
code is moved before calls to regulator_register.
Cc: Liam Girdwood <lrg@ti.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions