diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-09-24 05:45:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-26 04:28:40 -0400 |
commit | aad615c632681168e48b3cafd79e43f55f7be1cf (patch) | |
tree | 722017ed532f2afa63adfb0503445acc21fb22f7 | |
parent | 2720386ec5d4df8fd31ff7845b6e8557dcde3a26 (diff) |
regulator: qcom_rpm: Don't explicitly initialise the first field of config
Doing so generates a warning as the first field is a pointer but we use
0 to initialize it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/qcom_rpm-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 8f283098788a..8d5969a8e874 100644 --- a/drivers/regulator/qcom_rpm-regulator.c +++ b/drivers/regulator/qcom_rpm-regulator.c | |||
@@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev) | |||
631 | struct regulator_init_data *initdata; | 631 | struct regulator_init_data *initdata; |
632 | const struct qcom_rpm_reg *template; | 632 | const struct qcom_rpm_reg *template; |
633 | const struct of_device_id *match; | 633 | const struct of_device_id *match; |
634 | struct regulator_config config = { 0 }; | 634 | struct regulator_config config = { }; |
635 | struct regulator_dev *rdev; | 635 | struct regulator_dev *rdev; |
636 | struct qcom_rpm_reg *vreg; | 636 | struct qcom_rpm_reg *vreg; |
637 | const char *key; | 637 | const char *key; |