From: Axel Lin Date: Wed, 24 Sep 2014 09:45:25 +0000 (+0800) Subject: regulator: qcom_rpm: Don't explicitly initialise the first field of config X-Git-Tag: v4.9.8~5622^2~3^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aad615c632681168e48b3cafd79e43f55f7be1cf;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 8f28309..8d5969a 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) 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;