clk: rockchip: rk618: Initialize in stack clk_init_data to 0

This allows adding fields to clk_init_data without having to explicitly
set those fields in all the drivers.

Fixes: 2071154513 ("ANDROID: GKI: clk: Initialize in stack clk_init_data to 0 in all drivers")
Change-Id: Ibc59e5fa1e6a9b7aff8612b7501e8f0644cd96ca
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-06-09 14:10:42 +08:00
parent 6459ce336d
commit 19bdaeace0
5 changed files with 5 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ devm_clk_regmap_register_composite(struct device *dev, const char *name,
const struct clk_ops *mux_ops = NULL, *div_ops = NULL, *gate_ops = NULL;
struct clk_hw *mux_hw = NULL, *div_hw = NULL, *gate_hw = NULL;
struct clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_regmap_composite *composite;
struct clk_ops *clk_composite_ops;

View File

@@ -80,7 +80,7 @@ devm_clk_regmap_register_divider(struct device *dev, const char *name,
unsigned long flags)
{
struct clk_regmap_divider *divider;
struct clk_init_data init;
struct clk_init_data init = {};
divider = devm_kzalloc(dev, sizeof(*divider), GFP_KERNEL);
if (!divider)

View File

@@ -59,7 +59,7 @@ devm_clk_regmap_register_gate(struct device *dev, const char *name,
unsigned long flags)
{
struct clk_regmap_gate *gate;
struct clk_init_data init;
struct clk_init_data init = {};
gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
if (!gate)

View File

@@ -55,7 +55,7 @@ devm_clk_regmap_register_mux(struct device *dev, const char *name,
unsigned long flags)
{
struct clk_regmap_mux *mux;
struct clk_init_data init;
struct clk_init_data init = {};
mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL);
if (!mux)

View File

@@ -343,7 +343,7 @@ devm_clk_regmap_register_pll(struct device *dev, const char *name,
unsigned long flags)
{
struct clk_regmap_pll *pll;
struct clk_init_data init;
struct clk_init_data init = {};
pll = devm_kzalloc(dev, sizeof(*pll), GFP_KERNEL);
if (!pll)