Commit aad615c6 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2720386e
...@@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev) ...@@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
struct regulator_init_data *initdata; struct regulator_init_data *initdata;
const struct qcom_rpm_reg *template; const struct qcom_rpm_reg *template;
const struct of_device_id *match; const struct of_device_id *match;
struct regulator_config config = { 0 }; struct regulator_config config = { };
struct regulator_dev *rdev; struct regulator_dev *rdev;
struct qcom_rpm_reg *vreg; struct qcom_rpm_reg *vreg;
const char *key; const char *key;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment