Skip to content

Commit

Permalink
regulator: qcom_rpm: Don't explicitly initialise the first field of c…
Browse files Browse the repository at this point in the history
…onfig

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>
  • Loading branch information
AxelLin authored and broonie committed Sep 26, 2014
1 parent 2720386 commit aad615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/qcom_rpm-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static int rpm_reg_probe(struct platform_device *pdev)
struct regulator_init_data *initdata;
const struct qcom_rpm_reg *template;
const struct of_device_id *match;
struct regulator_config config = { 0 };
struct regulator_config config = { };
struct regulator_dev *rdev;
struct qcom_rpm_reg *vreg;
const char *key;
Expand Down

0 comments on commit aad615c

Please sign in to comment.