Commit 7d79735d authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Ulf Hansson

mmc: meson-mx-sdhc: Don't use literal 0 to initialize structs

Kbuild test robot reports the following warning in lines 56 and 87 of
drivers/mmc/host/meson-mx-sdhc-clkc.c:
  Using plain integer as NULL pointer

Drop the integer value from the struct initialization to fix that
warning. This will still ensure that the compiler will zero out the
struct so it's in a well-defined state.
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20200517222907.1277787-2-martin.blumenstingl@googlemail.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c70805dc
...@@ -53,7 +53,7 @@ static int meson_mx_sdhc_clk_hw_register(struct device *dev, ...@@ -53,7 +53,7 @@ static int meson_mx_sdhc_clk_hw_register(struct device *dev,
const struct clk_ops *ops, const struct clk_ops *ops,
struct clk_hw *hw) struct clk_hw *hw)
{ {
struct clk_init_data init = { 0 }; struct clk_init_data init = { };
char clk_name[32]; char clk_name[32];
snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dev), snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dev),
...@@ -84,7 +84,7 @@ static int meson_mx_sdhc_gate_clk_hw_register(struct device *dev, ...@@ -84,7 +84,7 @@ static int meson_mx_sdhc_gate_clk_hw_register(struct device *dev,
int meson_mx_sdhc_register_clkc(struct device *dev, void __iomem *base, int meson_mx_sdhc_register_clkc(struct device *dev, void __iomem *base,
struct clk_bulk_data *clk_bulk_data) struct clk_bulk_data *clk_bulk_data)
{ {
struct clk_parent_data div_parent = { 0 }; struct clk_parent_data div_parent = { };
struct meson_mx_sdhc_clkc *clkc_data; struct meson_mx_sdhc_clkc *clkc_data;
int ret; int ret;
......
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