瀏覽代碼

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>
Axel Lin 11 年之前
父節點
當前提交
aad615c632
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/regulator/qcom_rpm-regulator.c

+ 1 - 1
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;