diff options
Diffstat (limited to 'drivers/regulator/max77693.c')
-rw-r--r-- | drivers/regulator/max77693.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index b0024e90e533..07b313e51b21 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c | |||
@@ -139,7 +139,7 @@ static struct regulator_ops max77693_charger_ops = { | |||
139 | .enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \ | 139 | .enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \ |
140 | } | 140 | } |
141 | 141 | ||
142 | static struct regulator_desc regulators[] = { | 142 | static const struct regulator_desc regulators[] = { |
143 | regulator_desc_esafeout(1), | 143 | regulator_desc_esafeout(1), |
144 | regulator_desc_esafeout(2), | 144 | regulator_desc_esafeout(2), |
145 | { | 145 | { |
@@ -227,7 +227,7 @@ static int max77693_pmic_probe(struct platform_device *pdev) | |||
227 | struct max77693_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 227 | struct max77693_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
228 | struct max77693_regulator_data *rdata = NULL; | 228 | struct max77693_regulator_data *rdata = NULL; |
229 | int num_rdata, i; | 229 | int num_rdata, i; |
230 | struct regulator_config config; | 230 | struct regulator_config config = { }; |
231 | 231 | ||
232 | num_rdata = max77693_pmic_init_rdata(&pdev->dev, &rdata); | 232 | num_rdata = max77693_pmic_init_rdata(&pdev->dev, &rdata); |
233 | if (!rdata || num_rdata <= 0) { | 233 | if (!rdata || num_rdata <= 0) { |