mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user