ANDROID: GKI: clk: Initialize in stack clk_init_data to 0 in all drivers

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

Bug: 150506629
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: I0ff4e5108541b9f6e3e3e3f984a277b6954a629c
This commit is contained in:
Saravana Kannan
2020-02-04 16:39:41 -08:00
parent 1f01baa02c
commit 2071154513
147 changed files with 179 additions and 179 deletions

View File

@@ -288,7 +288,7 @@ at91_clk_register_generated(struct regmap *regmap, spinlock_t *lock,
const struct clk_range *range) const struct clk_range *range)
{ {
struct clk_generated *gck; struct clk_generated *gck;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -89,7 +89,7 @@ static const struct clk_ops h32mx_ops = {
static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np) static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np)
{ {
struct clk_sama5d4_h32mx *h32mxclk; struct clk_sama5d4_h32mx *h32mxclk;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_name; const char *parent_name;
struct regmap *regmap; struct regmap *regmap;
int ret; int ret;

View File

@@ -139,7 +139,7 @@ at91_clk_register_main_osc(struct regmap *regmap,
bool bypass) bool bypass)
{ {
struct clk_main_osc *osc; struct clk_main_osc *osc;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;
@@ -285,7 +285,7 @@ at91_clk_register_main_rc_osc(struct regmap *regmap,
u32 frequency, u32 accuracy) u32 frequency, u32 accuracy)
{ {
struct clk_main_rc_osc *osc; struct clk_main_rc_osc *osc;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;
@@ -416,7 +416,7 @@ at91_clk_register_rm9200_main(struct regmap *regmap,
const char *parent_name) const char *parent_name)
{ {
struct clk_rm9200_main *clkmain; struct clk_rm9200_main *clkmain;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;
@@ -555,7 +555,7 @@ at91_clk_register_sam9x5_main(struct regmap *regmap,
int num_parents) int num_parents)
{ {
struct clk_sam9x5_main *clkmain; struct clk_sam9x5_main *clkmain;
struct clk_init_data init; struct clk_init_data init = {};
unsigned int status; unsigned int status;
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -128,7 +128,7 @@ at91_clk_register_master(struct regmap *regmap,
const struct clk_master_characteristics *characteristics) const struct clk_master_characteristics *characteristics)
{ {
struct clk_master *master; struct clk_master *master;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -109,7 +109,7 @@ at91_clk_register_peripheral(struct regmap *regmap, const char *name,
const char *parent_name, u32 id) const char *parent_name, u32 id)
{ {
struct clk_peripheral *periph; struct clk_peripheral *periph;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;
@@ -337,7 +337,7 @@ at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock,
u32 id, const struct clk_range *range) u32 id, const struct clk_range *range)
{ {
struct clk_sam9x5_peripheral *periph; struct clk_sam9x5_peripheral *periph;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -296,7 +296,7 @@ at91_clk_register_pll(struct regmap *regmap, const char *name,
{ {
struct clk_pll *pll; struct clk_pll *pll;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int offset = PLL_REG(id); int offset = PLL_REG(id);
unsigned int pllr; unsigned int pllr;
int ret; int ret;

View File

@@ -81,7 +81,7 @@ at91_clk_register_plldiv(struct regmap *regmap, const char *name,
{ {
struct clk_plldiv *plldiv; struct clk_plldiv *plldiv;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
plldiv = kzalloc(sizeof(*plldiv), GFP_KERNEL); plldiv = kzalloc(sizeof(*plldiv), GFP_KERNEL);

View File

@@ -178,7 +178,7 @@ at91_clk_register_programmable(struct regmap *regmap,
{ {
struct clk_programmable *prog; struct clk_programmable *prog;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (id > PROG_ID_MAX) if (id > PROG_ID_MAX)

View File

@@ -48,7 +48,7 @@ at91_clk_register_sam9260_slow(struct regmap *regmap,
{ {
struct clk_sam9260_slow *slowck; struct clk_sam9260_slow *slowck;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (!name) if (!name)

View File

@@ -117,7 +117,7 @@ at91sam9x5_clk_register_smd(struct regmap *regmap, const char *name,
{ {
struct at91sam9x5_clk_smd *smd; struct at91sam9x5_clk_smd *smd;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
smd = kzalloc(sizeof(*smd), GFP_KERNEL); smd = kzalloc(sizeof(*smd), GFP_KERNEL);

View File

@@ -94,7 +94,7 @@ at91_clk_register_system(struct regmap *regmap, const char *name,
{ {
struct clk_system *sys; struct clk_system *sys;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (!parent_name || id > SYSTEM_MAX_ID) if (!parent_name || id > SYSTEM_MAX_ID)

View File

@@ -198,7 +198,7 @@ at91sam9x5_clk_register_usb(struct regmap *regmap, const char *name,
{ {
struct at91sam9x5_clk_usb *usb; struct at91sam9x5_clk_usb *usb;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
usb = kzalloc(sizeof(*usb), GFP_KERNEL); usb = kzalloc(sizeof(*usb), GFP_KERNEL);
@@ -231,7 +231,7 @@ at91sam9n12_clk_register_usb(struct regmap *regmap, const char *name,
{ {
struct at91sam9x5_clk_usb *usb; struct at91sam9x5_clk_usb *usb;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
usb = kzalloc(sizeof(*usb), GFP_KERNEL); usb = kzalloc(sizeof(*usb), GFP_KERNEL);
@@ -348,7 +348,7 @@ at91rm9200_clk_register_usb(struct regmap *regmap, const char *name,
{ {
struct at91rm9200_clk_usb *usb; struct at91rm9200_clk_usb *usb;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
usb = kzalloc(sizeof(*usb), GFP_KERNEL); usb = kzalloc(sizeof(*usb), GFP_KERNEL);

View File

@@ -131,7 +131,7 @@ at91_clk_register_utmi(struct regmap *regmap_pmc, struct regmap *regmap_sfr,
{ {
struct clk_utmi *utmi; struct clk_utmi *utmi;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
utmi = kzalloc(sizeof(*utmi), GFP_KERNEL); utmi = kzalloc(sizeof(*utmi), GFP_KERNEL);

View File

@@ -121,7 +121,7 @@ at91_clk_register_slow_osc(void __iomem *sckcr,
{ {
struct clk_slow_osc *osc; struct clk_slow_osc *osc;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (!sckcr || !name || !parent_name) if (!sckcr || !name || !parent_name)
@@ -240,7 +240,7 @@ at91_clk_register_slow_rc_osc(void __iomem *sckcr,
{ {
struct clk_slow_rc_osc *osc; struct clk_slow_rc_osc *osc;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (!sckcr || !name) if (!sckcr || !name)
@@ -344,7 +344,7 @@ at91_clk_register_sam9x5_slow(void __iomem *sckcr,
{ {
struct clk_sam9x5_slow *slowck; struct clk_sam9x5_slow *slowck;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (!sckcr || !name || !parent_names || !num_parents) if (!sckcr || !name || !parent_names || !num_parents)
@@ -478,7 +478,7 @@ static void __init of_sama5d4_sckc_setup(struct device_node *np)
void __iomem *regbase = of_iomap(np, 0); void __iomem *regbase = of_iomap(np, 0);
struct clk_hw *hw; struct clk_hw *hw;
struct clk_sama5d4_slow_osc *osc; struct clk_sama5d4_slow_osc *osc;
struct clk_init_data init; struct clk_init_data init = {};
const char *xtal_name; const char *xtal_name;
const char *parent_names[2] = { "slow_rc_osc", "slow_osc" }; const char *parent_names[2] = { "slow_rc_osc", "slow_osc" };
bool bypass; bool bypass;

View File

@@ -170,7 +170,7 @@ static int i2s_pll_clk_probe(struct platform_device *pdev)
const char *parent_name; const char *parent_name;
struct clk *clk; struct clk *clk;
struct i2s_pll_clk *pll_clk; struct i2s_pll_clk *pll_clk;
struct clk_init_data init; struct clk_init_data init = {};
struct resource *mem; struct resource *mem;
pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL); pll_clk = devm_kzalloc(dev, sizeof(*pll_clk), GFP_KERNEL);

View File

@@ -1298,7 +1298,7 @@ static struct clk_hw *bcm2835_register_pll(struct bcm2835_cprman *cprman,
const struct bcm2835_pll_data *data) const struct bcm2835_pll_data *data)
{ {
struct bcm2835_pll *pll; struct bcm2835_pll *pll;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
memset(&init, 0, sizeof(init)); memset(&init, 0, sizeof(init));
@@ -1329,7 +1329,7 @@ bcm2835_register_pll_divider(struct bcm2835_cprman *cprman,
const struct bcm2835_pll_divider_data *data) const struct bcm2835_pll_divider_data *data)
{ {
struct bcm2835_pll_divider *divider; struct bcm2835_pll_divider *divider;
struct clk_init_data init; struct clk_init_data init = {};
const char *divider_name; const char *divider_name;
int ret; int ret;
@@ -1388,7 +1388,7 @@ static struct clk_hw *bcm2835_register_clock(struct bcm2835_cprman *cprman,
const struct bcm2835_clock_data *data) const struct bcm2835_clock_data *data)
{ {
struct bcm2835_clock *clock; struct bcm2835_clock *clock;
struct clk_init_data init; struct clk_init_data init = {};
const char *parents[1 << CM_SRC_BITS]; const char *parents[1 << CM_SRC_BITS];
size_t i; size_t i;
int ret; int ret;

View File

@@ -245,7 +245,7 @@ void __init iproc_armpll_setup(struct device_node *node)
{ {
int ret; int ret;
struct iproc_arm_pll *pll; struct iproc_arm_pll *pll;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_name; const char *parent_name;
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);

View File

@@ -216,7 +216,7 @@ void __init iproc_asiu_setup(struct device_node *node,
goto err_iomap_gate; goto err_iomap_gate;
for (i = 0; i < num_clks; i++) { for (i = 0; i < num_clks; i++) {
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_name; const char *parent_name;
struct iproc_asiu_clk *asiu_clk; struct iproc_asiu_clk *asiu_clk;
const char *clk_name; const char *clk_name;

View File

@@ -732,7 +732,7 @@ void iproc_pll_clk_setup(struct device_node *node,
int i, ret; int i, ret;
struct iproc_pll *pll; struct iproc_pll *pll;
struct iproc_clk *iclk; struct iproc_clk *iclk;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_name; const char *parent_name;
struct iproc_clk *iclk_array; struct iproc_clk *iclk_array;
struct clk_hw_onecell_data *clk_data; struct clk_hw_onecell_data *clk_data;

View File

@@ -182,7 +182,7 @@ int __init berlin2_avpll_vco_register(void __iomem *base,
u8 vco_flags, unsigned long flags) u8 vco_flags, unsigned long flags)
{ {
struct berlin2_avpll_vco *vco; struct berlin2_avpll_vco *vco;
struct clk_init_data init; struct clk_init_data init = {};
vco = kzalloc(sizeof(*vco), GFP_KERNEL); vco = kzalloc(sizeof(*vco), GFP_KERNEL);
if (!vco) if (!vco)
@@ -358,7 +358,7 @@ int __init berlin2_avpll_channel_register(void __iomem *base,
u8 ch_flags, unsigned long flags) u8 ch_flags, unsigned long flags)
{ {
struct berlin2_avpll_channel *ch; struct berlin2_avpll_channel *ch;
struct clk_init_data init; struct clk_init_data init = {};
ch = kzalloc(sizeof(*ch), GFP_KERNEL); ch = kzalloc(sizeof(*ch), GFP_KERNEL);
if (!ch) if (!ch)

View File

@@ -78,7 +78,7 @@ berlin2_pll_register(const struct berlin2_pll_map *map,
void __iomem *base, const char *name, void __iomem *base, const char *name,
const char *parent_name, unsigned long flags) const char *parent_name, unsigned long flags)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct berlin2_pll *pll; struct berlin2_pll *pll;
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);

View File

@@ -387,7 +387,7 @@ static struct clk_hw *aspeed_clk_hw_register_gate(struct device *dev,
u8 clk_gate_flags, spinlock_t *lock) u8 clk_gate_flags, spinlock_t *lock)
{ {
struct aspeed_clk_gate *gate; struct aspeed_clk_gate *gate;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -411,7 +411,7 @@ static int axi_clkgen_probe(struct platform_device *pdev)
{ {
const struct of_device_id *id; const struct of_device_id *id;
struct axi_clkgen *axi_clkgen; struct axi_clkgen *axi_clkgen;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_names[2]; const char *parent_names[2];
const char *clk_name; const char *clk_name;
struct resource *mem; struct resource *mem;

View File

@@ -616,7 +616,7 @@ static int cdce925_probe(struct i2c_client *client,
struct device_node *node = client->dev.of_node; struct device_node *node = client->dev.of_node;
const char *parent_name; const char *parent_name;
const char *pll_clk_name[MAX_NUMBER_OF_PLLS] = {NULL,}; const char *pll_clk_name[MAX_NUMBER_OF_PLLS] = {NULL,};
struct clk_init_data init; struct clk_init_data init = {};
u32 value; u32 value;
int i; int i;
int err; int err;

View File

@@ -219,7 +219,7 @@ struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name,
unsigned long flags) unsigned long flags)
{ {
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_composite *composite; struct clk_composite *composite;
struct clk_ops *clk_composite_ops; struct clk_ops *clk_composite_ops;
int ret; int ret;

View File

@@ -418,7 +418,7 @@ static int cs2000_clk_register(struct cs2000_priv *priv)
{ {
struct device *dev = priv_to_dev(priv); struct device *dev = priv_to_dev(priv);
struct device_node *np = dev->of_node; struct device_node *np = dev->of_node;
struct clk_init_data init; struct clk_init_data init = {};
const char *name = np->name; const char *name = np->name;
static const char *parent_names[CLK_MAX]; static const char *parent_names[CLK_MAX];
int ch = 0; /* it uses ch0 only at this point */ int ch = 0; /* it uses ch0 only at this point */

View File

@@ -458,7 +458,7 @@ static struct clk_hw *_register_divider(struct device *dev, const char *name,
{ {
struct clk_divider *div; struct clk_divider *div;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (clk_divider_flags & CLK_DIVIDER_HIWORD_MASK) { if (clk_divider_flags & CLK_DIVIDER_HIWORD_MASK) {

View File

@@ -74,7 +74,7 @@ struct clk_hw *clk_hw_register_fixed_factor(struct device *dev,
unsigned int mult, unsigned int div) unsigned int mult, unsigned int div)
{ {
struct clk_fixed_factor *fix; struct clk_fixed_factor *fix;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -61,7 +61,7 @@ struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
{ {
struct clk_fixed_rate *fixed; struct clk_fixed_rate *fixed;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
/* allocate fixed-rate clock */ /* allocate fixed-rate clock */

View File

@@ -134,7 +134,7 @@ struct clk_hw *clk_hw_register_fractional_divider(struct device *dev,
u8 clk_divider_flags, spinlock_t *lock) u8 clk_divider_flags, spinlock_t *lock)
{ {
struct clk_fractional_divider *fd; struct clk_fractional_divider *fd;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -128,7 +128,7 @@ struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name,
{ {
struct clk_gate *gate; struct clk_gate *gate;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
if (clk_gate_flags & CLK_GATE_HIWORD_MASK) { if (clk_gate_flags & CLK_GATE_HIWORD_MASK) {

View File

@@ -193,7 +193,7 @@ static struct clk_hw *gemini_pci_clk_setup(const char *name,
struct regmap *map) struct regmap *map)
{ {
struct clk_gemini_pci *pciclk; struct clk_gemini_pci *pciclk;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
pciclk = kzalloc(sizeof(*pciclk), GFP_KERNEL); pciclk = kzalloc(sizeof(*pciclk), GFP_KERNEL);

View File

@@ -278,7 +278,7 @@ static __init struct clk *hb_clk_init(struct device_node *node, const struct clk
struct hb_clk *hb_clk; struct hb_clk *hb_clk;
const char *clk_name = node->name; const char *clk_name = node->name;
const char *parent_name; const char *parent_name;
struct clk_init_data init; struct clk_init_data init = {};
struct device_node *srnp; struct device_node *srnp;
int rc; int rc;

View File

@@ -140,7 +140,7 @@ struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name,
{ {
struct clk_mux *mux; struct clk_mux *mux;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
u8 width = 0; u8 width = 0;
int ret; int ret;

View File

@@ -259,7 +259,7 @@ pll_clk_register(struct device *dev, const char *name,
{ {
int ret; int ret;
struct clk_pll *pll; struct clk_pll *pll;
struct clk_init_data init; struct clk_init_data init = {};
if (id != 1 && id != 2) { if (id != 1 && id != 2) {
pr_err("%s: the Nomadik has only PLL 1 & 2\n", __func__); pr_err("%s: the Nomadik has only PLL 1 & 2\n", __func__);
@@ -351,7 +351,7 @@ src_clk_register(struct device *dev, const char *name,
{ {
int ret; int ret;
struct clk_src *sclk; struct clk_src *sclk;
struct clk_init_data init; struct clk_init_data init = {};
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
if (!sclk) if (!sclk)

View File

@@ -70,7 +70,7 @@ npcm7xx_clk_register_pll(void __iomem *pllcon, const char *name,
const char *parent_name, unsigned long flags) const char *parent_name, unsigned long flags)
{ {
struct npcm7xx_clk_pll *pll; struct npcm7xx_clk_pll *pll;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int ret; int ret;

View File

@@ -56,7 +56,7 @@ static const struct clk_ops clk_pwm_ops = {
static int clk_pwm_probe(struct platform_device *pdev) static int clk_pwm_probe(struct platform_device *pdev)
{ {
struct device_node *node = pdev->dev.of_node; struct device_node *node = pdev->dev.of_node;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_pwm *clk_pwm; struct clk_pwm *clk_pwm;
struct pwm_device *pwm; struct pwm_device *pwm;
struct pwm_args pargs; struct pwm_args pargs;

View File

@@ -150,7 +150,7 @@ static int
scpi_clk_ops_init(struct device *dev, const struct of_device_id *match, scpi_clk_ops_init(struct device *dev, const struct of_device_id *match,
struct scpi_clk *sclk, const char *name) struct scpi_clk *sclk, const char *name)
{ {
struct clk_init_data init; struct clk_init_data init = {};
unsigned long min = 0, max = 0; unsigned long min = 0, max = 0;
int ret; int ret;

View File

@@ -340,7 +340,7 @@ static int si514_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct clk_si514 *data; struct clk_si514 *data;
struct clk_init_data init; struct clk_init_data init = {};
int err; int err;
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);

View File

@@ -1370,7 +1370,7 @@ static int si5351_i2c_probe(struct i2c_client *client,
enum si5351_variant variant = (enum si5351_variant)id->driver_data; enum si5351_variant variant = (enum si5351_variant)id->driver_data;
struct si5351_platform_data *pdata; struct si5351_platform_data *pdata;
struct si5351_driver_data *drvdata; struct si5351_driver_data *drvdata;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_names[4]; const char *parent_names[4];
u8 num_parents, num_clocks; u8 num_parents, num_clocks;
int ret, n; int ret, n;

View File

@@ -373,7 +373,7 @@ static int si544_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct clk_si544 *data; struct clk_si544 *data;
struct clk_init_data init; struct clk_init_data init = {};
int err; int err;
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);

View File

@@ -407,7 +407,7 @@ static int si570_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct clk_si570 *data; struct clk_si570 *data;
struct clk_init_data init; struct clk_init_data init = {};
u32 initial_fout, factory_fout, stability; u32 initial_fout, factory_fout, stability;
int err; int err;
enum clk_si570_variant variant = id->driver_data; enum clk_si570_variant variant = id->driver_data;

View File

@@ -396,7 +396,7 @@ static struct clk *clk_register_apb_mul(struct device *dev, const char *name,
unsigned long flags, u8 bit_idx) unsigned long flags, u8 bit_idx)
{ {
struct clk_apb_mul *am; struct clk_apb_mul *am;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
am = kzalloc(sizeof(*am), GFP_KERNEL); am = kzalloc(sizeof(*am), GFP_KERNEL);
@@ -678,7 +678,7 @@ static struct clk_hw *clk_register_pll_div(const char *name,
{ {
struct stm32f4_pll_div *pll_div; struct stm32f4_pll_div *pll_div;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
/* allocate the divider */ /* allocate the divider */

View File

@@ -463,7 +463,7 @@ static struct clk_hw *clk_register_stm32_timer_ker(struct device *dev,
spinlock_t *lock) spinlock_t *lock)
{ {
struct timer_ker *element; struct timer_ker *element;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int err; int err;

View File

@@ -870,7 +870,7 @@ static struct clk_hw *clk_register_pll(struct device *dev, const char *name,
spinlock_t *lock) spinlock_t *lock)
{ {
struct stm32_pll_obj *element; struct stm32_pll_obj *element;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int err; int err;
@@ -1001,7 +1001,7 @@ static struct clk_hw *clk_register_cktim(struct device *dev, const char *name,
spinlock_t *lock) spinlock_t *lock)
{ {
struct timer_cker *tim_ker; struct timer_cker *tim_ker;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_hw *hw; struct clk_hw *hw;
int err; int err;

View File

@@ -699,7 +699,7 @@ syscon_clk_register(struct device *dev, const char *name,
{ {
struct clk_hw *hw; struct clk_hw *hw;
struct clk_syscon *sclk; struct clk_syscon *sclk;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
@@ -1118,7 +1118,7 @@ mclk_clk_register(struct device *dev, const char *name,
{ {
struct clk_hw *hw; struct clk_hw *hw;
struct clk_mclk *mclk; struct clk_mclk *mclk;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); mclk = kzalloc(sizeof(*mclk), GFP_KERNEL);

View File

@@ -703,7 +703,7 @@ static int vc5_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct vc5_driver_data *vc5; struct vc5_driver_data *vc5;
struct clk_init_data init; struct clk_init_data init = {};
const char *parent_names[2]; const char *parent_names[2];
unsigned int n, idx = 0; unsigned int n, idx = 0;
int ret; int ret;

View File

@@ -236,7 +236,7 @@ static __init void vtwm_device_clk_init(struct device_node *node)
struct clk_device *dev_clk; struct clk_device *dev_clk;
const char *clk_name = node->name; const char *clk_name = node->name;
const char *parent_name; const char *parent_name;
struct clk_init_data init; struct clk_init_data init = {};
int rc; int rc;
int clk_init_flags = 0; int clk_init_flags = 0;
@@ -686,7 +686,7 @@ static __init void vtwm_pll_clk_init(struct device_node *node, int pll_type)
struct clk_pll *pll_clk; struct clk_pll *pll_clk;
const char *clk_name = node->name; const char *clk_name = node->name;
const char *parent_name; const char *parent_name;
struct clk_init_data init; struct clk_init_data init = {};
int rc; int rc;
if (!pmc_base) if (!pmc_base)

View File

@@ -142,7 +142,7 @@ static struct clk *xgene_register_clk_pll(struct device *dev,
{ {
struct xgene_clk_pll *apmclk; struct xgene_clk_pll *apmclk;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
/* allocate the APM clock structure */ /* allocate the APM clock structure */
apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL); apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL);
@@ -359,7 +359,7 @@ xgene_register_clk_pmd(struct device *dev,
u8 width, u64 denom, u32 clk_flags, spinlock_t *lock) u8 width, u64 denom, u32 clk_flags, spinlock_t *lock)
{ {
struct xgene_clk_pmd *fd; struct xgene_clk_pmd *fd;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
fd = kzalloc(sizeof(*fd), GFP_KERNEL); fd = kzalloc(sizeof(*fd), GFP_KERNEL);
@@ -643,7 +643,7 @@ static struct clk *xgene_register_clk(struct device *dev,
{ {
struct xgene_clk *apmclk; struct xgene_clk *apmclk;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
int rc; int rc;
/* allocate the APM clock structure */ /* allocate the APM clock structure */

View File

@@ -91,7 +91,7 @@ da8xx_cfgchip_gate_clk_register(struct device *dev,
struct clk *parent; struct clk *parent;
const char *parent_name; const char *parent_name;
struct da8xx_cfgchip_gate_clk *gate; struct da8xx_cfgchip_gate_clk *gate;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
parent = devm_clk_get(dev, NULL); parent = devm_clk_get(dev, NULL);
@@ -242,7 +242,7 @@ da8xx_cfgchip_mux_clk_register(struct device *dev,
{ {
const char * const parent_names[] = { info->parent0, info->parent1 }; const char * const parent_names[] = { info->parent0, info->parent1 };
struct da8xx_cfgchip_mux_clk *mux; struct da8xx_cfgchip_mux_clk *mux;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL);
@@ -507,7 +507,7 @@ da8xx_cfgchip_register_usb0_clk48(struct device *dev,
const char * const parent_names[] = { "usb_refclkin", "pll0_auxclk" }; const char * const parent_names[] = { "usb_refclkin", "pll0_auxclk" };
struct clk *fck_clk; struct clk *fck_clk;
struct da8xx_usb0_clk48 *usb0; struct da8xx_usb0_clk48 *usb0;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
fck_clk = devm_clk_get(dev, "fck"); fck_clk = devm_clk_get(dev, "fck");
@@ -581,7 +581,7 @@ da8xx_cfgchip_register_usb1_clk48(struct device *dev,
{ {
const char * const parent_names[] = { "usb0_clk48", "usb_refclkin" }; const char * const parent_names[] = { "usb0_clk48", "usb_refclkin" };
struct da8xx_usb1_clk48 *usb1; struct da8xx_usb1_clk48 *usb1;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL); usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL);

View File

@@ -373,7 +373,7 @@ struct clk *davinci_pll_clk_register(struct device *dev,
char pllout_name[MAX_NAME_SIZE]; char pllout_name[MAX_NAME_SIZE];
char postdiv_name[MAX_NAME_SIZE]; char postdiv_name[MAX_NAME_SIZE];
char pllen_name[MAX_NAME_SIZE]; char pllen_name[MAX_NAME_SIZE];
struct clk_init_data init; struct clk_init_data init = {};
struct davinci_pll_clk *pllout; struct davinci_pll_clk *pllout;
struct davinci_pllen_clk *pllen; struct davinci_pllen_clk *pllen;
struct clk *oscin_clk = NULL; struct clk *oscin_clk = NULL;

View File

@@ -235,7 +235,7 @@ davinci_lpsc_clk_register(struct device *dev, const char *name,
const char *parent_name, struct regmap *regmap, const char *parent_name, struct regmap *regmap,
u32 md, u32 pd, u32 flags) u32 md, u32 pd, u32 flags)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct davinci_lpsc_clk *lpsc; struct davinci_lpsc_clk *lpsc;
int ret; int ret;
bool is_on; bool is_on;

View File

@@ -88,7 +88,7 @@ static void __init h8s2678_pll_clk_setup(struct device_node *node)
const char *clk_name = node->name; const char *clk_name = node->name;
const char *parent_name; const char *parent_name;
struct pll_clock *pll_clock; struct pll_clock *pll_clock;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
num_parents = of_clk_get_parent_count(node); num_parents = of_clk_get_parent_count(node);

View File

@@ -427,7 +427,7 @@ static struct clk *hisi_register_clk_mmc(struct hisi_mmc_clock *mmc_clk,
{ {
struct clk_mmc *mclk; struct clk_mmc *mclk;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
mclk = kzalloc(sizeof(*mclk), GFP_KERNEL); mclk = kzalloc(sizeof(*mclk), GFP_KERNEL);
if (!mclk) if (!mclk)

View File

@@ -197,7 +197,7 @@ static const struct clk_ops hi6220_stub_clk_ops = {
static int hi6220_stub_clk_probe(struct platform_device *pdev) static int hi6220_stub_clk_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct clk_init_data init; struct clk_init_data init = {};
struct hi6220_stub_clk *stub_clk; struct hi6220_stub_clk *stub_clk;
struct clk *clk; struct clk *clk;
struct device_node *np = pdev->dev.of_node; struct device_node *np = pdev->dev.of_node;

View File

@@ -95,7 +95,7 @@ struct clk *clk_register_hisi_phase(struct device *dev,
void __iomem *base, spinlock_t *lock) void __iomem *base, spinlock_t *lock)
{ {
struct clk_hisi_phase *phase; struct clk_hisi_phase *phase;
struct clk_init_data init; struct clk_init_data init = {};
phase = devm_kzalloc(dev, sizeof(struct clk_hisi_phase), GFP_KERNEL); phase = devm_kzalloc(dev, sizeof(struct clk_hisi_phase), GFP_KERNEL);
if (!phase) if (!phase)

View File

@@ -262,7 +262,7 @@ hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums,
for (i = 0; i < nums; i++) { for (i = 0; i < nums; i++) {
struct hix5hd2_clk_complex *p_clk; struct hix5hd2_clk_complex *p_clk;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL); p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL);
if (!p_clk) if (!p_clk)

View File

@@ -107,7 +107,7 @@ struct clk *hi6220_register_clkdiv(struct device *dev, const char *name,
{ {
struct hi6220_clk_divider *div; struct hi6220_clk_divider *div;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
struct clk_div_table *table; struct clk_div_table *table;
u32 max_div, min_div; u32 max_div, min_div;
int i; int i;

View File

@@ -102,7 +102,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name,
{ {
struct clkgate_separated *sclk; struct clkgate_separated *sclk;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL); sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
if (!sclk) if (!sclk)

View File

@@ -84,7 +84,7 @@ struct clk *imx_clk_busy_divider(const char *name, const char *parent_name,
{ {
struct clk_busy_divider *busy; struct clk_busy_divider *busy;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
busy = kzalloc(sizeof(*busy), GFP_KERNEL); busy = kzalloc(sizeof(*busy), GFP_KERNEL);
if (!busy) if (!busy)
@@ -158,7 +158,7 @@ struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift,
{ {
struct clk_busy_mux *busy; struct clk_busy_mux *busy;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
busy = kzalloc(sizeof(*busy), GFP_KERNEL); busy = kzalloc(sizeof(*busy), GFP_KERNEL);
if (!busy) if (!busy)

View File

@@ -81,7 +81,7 @@ struct clk *imx_clk_cpu(const char *name, const char *parent_name,
{ {
struct clk_cpu *cpu; struct clk_cpu *cpu;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
cpu = kzalloc(sizeof(*cpu), GFP_KERNEL); cpu = kzalloc(sizeof(*cpu), GFP_KERNEL);
if (!cpu) if (!cpu)

View File

@@ -97,7 +97,7 @@ struct clk *imx_clk_fixup_divider(const char *name, const char *parent,
{ {
struct clk_fixup_div *fixup_div; struct clk_fixup_div *fixup_div;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
if (!fixup) if (!fixup)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);

View File

@@ -75,7 +75,7 @@ struct clk *imx_clk_fixup_mux(const char *name, void __iomem *reg,
{ {
struct clk_fixup_mux *fixup_mux; struct clk_fixup_mux *fixup_mux;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
if (!fixup) if (!fixup)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);

View File

@@ -64,7 +64,7 @@ struct clk *imx_clk_gate_exclusive(const char *name, const char *parent,
struct clk_gate_exclusive *exgate; struct clk_gate_exclusive *exgate;
struct clk_gate *gate; struct clk_gate *gate;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
if (exclusive_mask == 0) if (exclusive_mask == 0)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);

View File

@@ -133,7 +133,7 @@ struct clk *clk_register_gate2(struct device *dev, const char *name,
{ {
struct clk_gate2 *gate; struct clk_gate2 *gate;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
gate = kzalloc(sizeof(struct clk_gate2), GFP_KERNEL); gate = kzalloc(sizeof(struct clk_gate2), GFP_KERNEL);
if (!gate) if (!gate)

View File

@@ -132,7 +132,7 @@ struct clk *imx_clk_pfd(const char *name, const char *parent_name,
{ {
struct clk_pfd *pfd; struct clk_pfd *pfd;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
pfd = kzalloc(sizeof(*pfd), GFP_KERNEL); pfd = kzalloc(sizeof(*pfd), GFP_KERNEL);
if (!pfd) if (!pfd)

View File

@@ -116,7 +116,7 @@ struct clk *imx_clk_pllv1(enum imx_pllv1_type type, const char *name,
{ {
struct clk_pllv1 *pll; struct clk_pllv1 *pll;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
pll = kmalloc(sizeof(*pll), GFP_KERNEL); pll = kmalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) if (!pll)

View File

@@ -244,7 +244,7 @@ struct clk *imx_clk_pllv2(const char *name, const char *parent,
{ {
struct clk_pllv2 *pll; struct clk_pllv2 *pll;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) if (!pll)

View File

@@ -419,7 +419,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name,
struct clk_pllv3 *pll; struct clk_pllv3 *pll;
const struct clk_ops *ops; const struct clk_ops *ops;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) if (!pll)

View File

@@ -168,7 +168,7 @@ static struct clk *clk_register_psc(struct device *dev,
struct clk_psc_data *psc_data, struct clk_psc_data *psc_data,
spinlock_t *lock) spinlock_t *lock)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct clk_psc *psc; struct clk_psc *psc;
struct clk *clk; struct clk *clk;

View File

@@ -126,7 +126,7 @@ static struct clk *clk_register_pll(struct device *dev,
const char *parent_name, const char *parent_name,
struct clk_pll_data *pll_data) struct clk_pll_data *pll_data)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct clk_pll *pll; struct clk_pll *pll;
struct clk *clk; struct clk *clk;

View File

@@ -18,7 +18,7 @@ struct clk_hw *__init clk_hw_register_pll(struct device *dev,
{ {
int ret; int ret;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
/* allocate the divider */ /* allocate the divider */
hw = kzalloc(sizeof(*hw), GFP_KERNEL); hw = kzalloc(sizeof(*hw), GFP_KERNEL);

View File

@@ -59,7 +59,7 @@ mtk_clk_register_cpumux(const struct mtk_composite *mux,
{ {
struct mtk_clk_cpumux *cpumux; struct mtk_clk_cpumux *cpumux;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
cpumux = kzalloc(sizeof(*cpumux), GFP_KERNEL); cpumux = kzalloc(sizeof(*cpumux), GFP_KERNEL);
if (!cpumux) if (!cpumux)

View File

@@ -655,7 +655,7 @@ static struct clk_hw *axg_clk_hw_register_bypass(struct device *dev,
const char *parent_name) const char *parent_name)
{ {
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
char *clk_name; char *clk_name;
int ret; int ret;

View File

@@ -125,7 +125,7 @@ struct clk *mmp_clk_register_apbc(const char *name, const char *parent_name,
{ {
struct clk_apbc *apbc; struct clk_apbc *apbc;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
apbc = kzalloc(sizeof(*apbc), GFP_KERNEL); apbc = kzalloc(sizeof(*apbc), GFP_KERNEL);
if (!apbc) if (!apbc)

View File

@@ -70,7 +70,7 @@ struct clk *mmp_clk_register_apmu(const char *name, const char *parent_name,
{ {
struct clk_apmu *apmu; struct clk_apmu *apmu;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
apmu = kzalloc(sizeof(*apmu), GFP_KERNEL); apmu = kzalloc(sizeof(*apmu), GFP_KERNEL);
if (!apmu) if (!apmu)

View File

@@ -163,7 +163,7 @@ struct clk *mmp_clk_register_factor(const char *name, const char *parent_name,
unsigned int ftbl_cnt, spinlock_t *lock) unsigned int ftbl_cnt, spinlock_t *lock)
{ {
struct mmp_clk_factor *factor; struct mmp_clk_factor *factor;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
if (!masks) { if (!masks) {

View File

@@ -99,7 +99,7 @@ struct clk *mmp_clk_register_gate(struct device *dev, const char *name,
{ {
struct mmp_clk_gate *gate; struct mmp_clk_gate *gate;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
/* allocate the gate */ /* allocate the gate */
gate = kzalloc(sizeof(*gate), GFP_KERNEL); gate = kzalloc(sizeof(*gate), GFP_KERNEL);

View File

@@ -447,7 +447,7 @@ struct clk *mmp_clk_register_mix(struct device *dev,
{ {
struct mmp_clk_mix *mix; struct mmp_clk_mix *mix;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
size_t table_bytes; size_t table_bytes;
mix = kzalloc(sizeof(*mix), GFP_KERNEL); mix = kzalloc(sizeof(*mix), GFP_KERNEL);

View File

@@ -252,7 +252,7 @@ static void __init
mvebu_corediv_clk_init(struct device_node *node, mvebu_corediv_clk_init(struct device_node *node,
const struct clk_corediv_soc_desc *soc_desc) const struct clk_corediv_soc_desc *soc_desc)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct clk_corediv *corediv; struct clk_corediv *corediv;
struct clk **clks; struct clk **clks;
void __iomem *base; void __iomem *base;

View File

@@ -195,7 +195,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
goto clks_out; goto clks_out;
for_each_node_by_type(dn, "cpu") { for_each_node_by_type(dn, "cpu") {
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
char *clk_name = kzalloc(5, GFP_KERNEL); char *clk_name = kzalloc(5, GFP_KERNEL);
int cpu, err; int cpu, err;

View File

@@ -160,7 +160,7 @@ static struct clk_hw *cp110_register_gate(const char *name,
{ {
struct cp110_gate_clk *gate; struct cp110_gate_clk *gate;
struct clk_hw *hw; struct clk_hw *hw;
struct clk_init_data init; struct clk_init_data init = {};
int ret; int ret;
gate = kzalloc(sizeof(*gate), GFP_KERNEL); gate = kzalloc(sizeof(*gate), GFP_KERNEL);

View File

@@ -78,7 +78,7 @@ struct clk *mxs_clk_div(const char *name, const char *parent_name,
{ {
struct clk_div *div; struct clk_div *div;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
div = kzalloc(sizeof(*div), GFP_KERNEL); div = kzalloc(sizeof(*div), GFP_KERNEL);
if (!div) if (!div)

View File

@@ -118,7 +118,7 @@ struct clk *mxs_clk_frac(const char *name, const char *parent_name,
{ {
struct clk_frac *frac; struct clk_frac *frac;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
frac = kzalloc(sizeof(*frac), GFP_KERNEL); frac = kzalloc(sizeof(*frac), GFP_KERNEL);
if (!frac) if (!frac)

View File

@@ -90,7 +90,7 @@ struct clk *mxs_clk_pll(const char *name, const char *parent_name,
{ {
struct clk_pll *pll; struct clk_pll *pll;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) if (!pll)

View File

@@ -129,7 +129,7 @@ struct clk *mxs_clk_ref(const char *name, const char *parent_name,
{ {
struct clk_ref *ref; struct clk_ref *ref;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
ref = kzalloc(sizeof(*ref), GFP_KERNEL); ref = kzalloc(sizeof(*ref), GFP_KERNEL);
if (!ref) if (!ref)

View File

@@ -141,7 +141,7 @@ static struct clk *clk_register_creg_clk(struct device *dev,
const char **parent_name, const char **parent_name,
struct regmap *syscon) struct regmap *syscon)
{ {
struct clk_init_data init; struct clk_init_data init = {};
init.ops = creg_clk->ops; init.ops = creg_clk->ops;
init.name = creg_clk->name; init.name = creg_clk->name;

View File

@@ -453,7 +453,7 @@ static struct clk *pll_register(const char *name, const char *parent_name,
unsigned int nr_rates) unsigned int nr_rates)
{ {
struct pistachio_clk_pll *pll; struct pistachio_clk_pll *pll;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
pll = kzalloc(sizeof(*pll), GFP_KERNEL); pll = kzalloc(sizeof(*pll), GFP_KERNEL);

View File

@@ -219,7 +219,7 @@ struct clk * __init cpg_div6_register(const char *name,
struct raw_notifier_head *notifiers) struct raw_notifier_head *notifiers)
{ {
unsigned int valid_parents; unsigned int valid_parents;
struct clk_init_data init; struct clk_init_data init = {};
struct div6_clock *clock; struct div6_clock *clock;
struct clk *clk; struct clk *clk;
unsigned int i; unsigned int i;

View File

@@ -151,7 +151,7 @@ static struct clk * __init cpg_mstp_clock_register(const char *name,
const char *parent_name, unsigned int index, const char *parent_name, unsigned int index,
struct mstp_clock_group *group) struct mstp_clock_group *group)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct mstp_clock *clock; struct mstp_clock *clock;
struct clk *clk; struct clk *clk;

View File

@@ -138,7 +138,7 @@ static const struct clk_ops cpg_z_clk_ops = {
static struct clk * __init cpg_z_clk_register(struct rcar_gen2_cpg *cpg) static struct clk * __init cpg_z_clk_register(struct rcar_gen2_cpg *cpg)
{ {
static const char *parent_name = "pll0"; static const char *parent_name = "pll0";
struct clk_init_data init; struct clk_init_data init = {};
struct cpg_z_clk *zclk; struct cpg_z_clk *zclk;
struct clk *clk; struct clk *clk;

View File

@@ -416,7 +416,7 @@ r9a06g032_register_gate(struct r9a06g032_priv *clocks,
{ {
struct clk *clk; struct clk *clk;
struct r9a06g032_clk_gate *g; struct r9a06g032_clk_gate *g;
struct clk_init_data init; struct clk_init_data init = {};
g = kzalloc(sizeof(*g), GFP_KERNEL); g = kzalloc(sizeof(*g), GFP_KERNEL);
if (!g) if (!g)
@@ -586,7 +586,7 @@ r9a06g032_register_div(struct r9a06g032_priv *clocks,
{ {
struct r9a06g032_clk_div *div; struct r9a06g032_clk_div *div;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
unsigned int i; unsigned int i;
div = kzalloc(sizeof(*div), GFP_KERNEL); div = kzalloc(sizeof(*div), GFP_KERNEL);
@@ -670,7 +670,7 @@ r9a06g032_register_bitsel(struct r9a06g032_priv *clocks,
{ {
struct clk *clk; struct clk *clk;
struct r9a06g032_clk_bitsel *g; struct r9a06g032_clk_bitsel *g;
struct clk_init_data init; struct clk_init_data init = {};
const char *names[2]; const char *names[2];
/* allocate the gate */ /* allocate the gate */
@@ -761,7 +761,7 @@ r9a06g032_register_dualgate(struct r9a06g032_priv *clocks,
{ {
struct r9a06g032_clk_dualgate *g; struct r9a06g032_clk_dualgate *g;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
/* allocate the gate */ /* allocate the gate */
g = kzalloc(sizeof(*g), GFP_KERNEL); g = kzalloc(sizeof(*g), GFP_KERNEL);

View File

@@ -137,7 +137,7 @@ static struct clk * __init cpg_z_clk_register(const char *name,
const char *parent_name, const char *parent_name,
void __iomem *base) void __iomem *base)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct cpg_z_clk *zclk; struct cpg_z_clk *zclk;
struct clk *clk; struct clk *clk;

View File

@@ -170,7 +170,7 @@ static struct clk * __init cpg_z_clk_register(const char *name,
void __iomem *reg, void __iomem *reg,
unsigned long mask) unsigned long mask)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct cpg_z_clk *zclk; struct cpg_z_clk *zclk;
struct clk *clk; struct clk *clk;
@@ -357,7 +357,7 @@ static struct clk * __init cpg_sd_clk_register(const struct cpg_core_clk *core,
void __iomem *base, const char *parent_name, void __iomem *base, const char *parent_name,
struct raw_notifier_head *notifiers) struct raw_notifier_head *notifiers)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct sd_clock *clock; struct sd_clock *clock;
struct clk *clk; struct clk *clk;
unsigned int i; unsigned int i;

View File

@@ -121,7 +121,7 @@ static int rcar_usb2_clock_sel_probe(struct platform_device *pdev)
struct usb2_clock_sel_priv *priv; struct usb2_clock_sel_priv *priv;
struct resource *res; struct resource *res;
struct clk *clk; struct clk *clk;
struct clk_init_data init; struct clk_init_data init = {};
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) if (!priv)

View File

@@ -343,7 +343,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
struct mstp_clock *clock = NULL; struct mstp_clock *clock = NULL;
struct device *dev = priv->dev; struct device *dev = priv->dev;
unsigned int id = mod->id; unsigned int id = mod->id;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *parent, *clk; struct clk *parent, *clk;
const char *parent_name; const char *parent_name;
unsigned int i; unsigned int i;

View File

@@ -253,7 +253,7 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
int nrates, void __iomem *reg_base, spinlock_t *lock) int nrates, void __iomem *reg_base, spinlock_t *lock)
{ {
struct rockchip_cpuclk *cpuclk; struct rockchip_cpuclk *cpuclk;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk, *cclk; struct clk *clk, *cclk;
int ret; int ret;

View File

@@ -105,7 +105,7 @@ struct clk *rockchip_clk_register_ddrclk(const char *name, int flags,
spinlock_t *lock) spinlock_t *lock)
{ {
struct rockchip_ddrclk *ddrclk; struct rockchip_ddrclk *ddrclk;
struct clk_init_data init; struct clk_init_data init = {};
struct clk *clk; struct clk *clk;
ddrclk = kzalloc(sizeof(*ddrclk), GFP_KERNEL); ddrclk = kzalloc(sizeof(*ddrclk), GFP_KERNEL);

View File

@@ -84,7 +84,7 @@ struct clk *rockchip_clk_register_inverter(const char *name,
void __iomem *reg, int shift, int flags, void __iomem *reg, int shift, int flags,
spinlock_t *lock) spinlock_t *lock)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct rockchip_inv_clock *inv_clock; struct rockchip_inv_clock *inv_clock;
struct clk *clk; struct clk *clk;

View File

@@ -201,7 +201,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
const char *const *parent_names, u8 num_parents, const char *const *parent_names, u8 num_parents,
void __iomem *reg, int shift) void __iomem *reg, int shift)
{ {
struct clk_init_data init; struct clk_init_data init = {};
struct rockchip_mmc_clock *mmc_clock; struct rockchip_mmc_clock *mmc_clock;
struct clk *clk; struct clk *clk;
int ret; int ret;

Some files were not shown because too many files have changed in this diff Show More