diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2012-10-15 08:15:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 09:17:39 -0400 |
commit | a9a5659ac61b9e21d17993a6c0fbbeb83e182526 (patch) | |
tree | b1bddbbd76680748b84507e03b00262c55877f67 /drivers/regulator | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
regulator: tps65910: fix BUG_ON() shown with vrtc regulator
Fix BUG_ON() error if tps65910 VRTC regulator is used with out
rdev->desc->volt_table data. Recent changes in regulator core driver
which add support for "regulator_list_voltage_table" have BUG_ON() if
regulator descriptor do not voltage table information. This patch adds
the voltage table information to fix the issue.
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/tps65910-regulator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index 793adda560c3..1d2dd1864ae7 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c | |||
@@ -38,6 +38,11 @@ static const unsigned int VIO_VSEL_table[] = { | |||
38 | 38 | ||
39 | /* VSEL tables for TPS65910 specific LDOs and dcdc's */ | 39 | /* VSEL tables for TPS65910 specific LDOs and dcdc's */ |
40 | 40 | ||
41 | /* supported VRTC voltages in microvolts */ | ||
42 | static const unsigned int VRTC_VSEL_table[] = { | ||
43 | 1800000, | ||
44 | }; | ||
45 | |||
41 | /* supported VDD3 voltages in microvolts */ | 46 | /* supported VDD3 voltages in microvolts */ |
42 | static const unsigned int VDD3_VSEL_table[] = { | 47 | static const unsigned int VDD3_VSEL_table[] = { |
43 | 5000000, | 48 | 5000000, |
@@ -95,6 +100,8 @@ static struct tps_info tps65910_regs[] = { | |||
95 | { | 100 | { |
96 | .name = "vrtc", | 101 | .name = "vrtc", |
97 | .vin_name = "vcc7", | 102 | .vin_name = "vcc7", |
103 | .n_voltages = ARRAY_SIZE(VRTC_VSEL_table), | ||
104 | .voltage_table = VRTC_VSEL_table, | ||
98 | .enable_time_us = 2200, | 105 | .enable_time_us = 2200, |
99 | }, | 106 | }, |
100 | { | 107 | { |