@@ -96,7 +96,7 @@ void __init of_sama5d4_clk_h32mx_setup(s
struct at91_pmc *pmc)
{
struct clk_sama5d4_h32mx *h32mxclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
const char *parent_name;
struct clk *clk;
@@ -148,7 +148,7 @@ at91_clk_register_main_osc(struct at91_p
int ret;
struct clk_main_osc *osc;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !irq || !name || !parent_name)
return ERR_PTR(-EINVAL);
@@ -302,7 +302,7 @@ at91_clk_register_main_rc_osc(struct at9
int ret;
struct clk_main_rc_osc *osc;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !irq || !name || !frequency)
return ERR_PTR(-EINVAL);
@@ -433,7 +433,7 @@ at91_clk_register_rm9200_main(struct at9
{
struct clk_rm9200_main *clkmain;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !name)
return ERR_PTR(-EINVAL);
@@ -567,7 +567,7 @@ at91_clk_register_sam9x5_main(struct at9
int ret;
struct clk_sam9x5_main *clkmain;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !irq || !name)
return ERR_PTR(-EINVAL);
@@ -141,7 +141,7 @@ at91_clk_register_master(struct at91_pmc
int ret;
struct clk_master *master;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !irq || !name || !num_parents || !parent_names)
return ERR_PTR(-EINVAL);
@@ -106,7 +106,7 @@ at91_clk_register_peripheral(struct at91
{
struct clk_peripheral *periph;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !name || !parent_name || id > PERIPHERAL_ID_MAX)
return ERR_PTR(-EINVAL);
@@ -316,7 +316,7 @@ at91_clk_register_sam9x5_peripheral(stru
{
struct clk_sam9x5_peripheral *periph;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !name || !parent_name)
return ERR_PTR(-EINVAL);
@@ -315,7 +315,7 @@ at91_clk_register_pll(struct at91_pmc *p
{
struct clk_pll *pll;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int ret;
int offset = PLL_REG(id);
u32 tmp;
@@ -85,7 +85,7 @@ at91_clk_register_plldiv(struct at91_pmc
{
struct clk_plldiv *plldiv;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
plldiv = kzalloc(sizeof(*plldiv), GFP_KERNEL);
if (!plldiv)
@@ -180,7 +180,7 @@ at91_clk_register_programmable(struct at
{
struct clk_programmable *prog;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (id > PROG_ID_MAX)
return ERR_PTR(-EINVAL);
@@ -129,7 +129,7 @@ at91_clk_register_slow_osc(void __iomem
{
struct clk_slow_osc *osc;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!sckcr || !name || !parent_name)
return ERR_PTR(-EINVAL);
@@ -241,7 +241,7 @@ at91_clk_register_slow_rc_osc(void __iom
{
struct clk_slow_rc_osc *osc;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!sckcr || !name)
return ERR_PTR(-EINVAL);
@@ -338,7 +338,7 @@ at91_clk_register_sam9x5_slow(void __iom
{
struct clk_sam9x5_slow *slowck;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!sckcr || !name || !parent_names || !num_parents)
return ERR_PTR(-EINVAL);
@@ -409,7 +409,7 @@ at91_clk_register_sam9260_slow(struct at
{
struct clk_sam9260_slow *slowck;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!pmc || !name)
return ERR_PTR(-EINVAL);
@@ -119,7 +119,7 @@ at91sam9x5_clk_register_smd(struct at91_
{
struct at91sam9x5_clk_smd *smd;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
smd = kzalloc(sizeof(*smd), GFP_KERNEL);
if (!smd)
@@ -105,7 +105,7 @@ at91_clk_register_system(struct at91_pmc
{
struct clk_system *sys;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int ret;
if (!parent_name || id > SYSTEM_MAX_ID)
@@ -202,7 +202,7 @@ at91sam9x5_clk_register_usb(struct at91_
{
struct at91sam9x5_clk_usb *usb;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
usb = kzalloc(sizeof(*usb), GFP_KERNEL);
if (!usb)
@@ -231,7 +231,7 @@ at91sam9n12_clk_register_usb(struct at91
{
struct at91sam9x5_clk_usb *usb;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
usb = kzalloc(sizeof(*usb), GFP_KERNEL);
if (!usb)
@@ -346,7 +346,7 @@ at91rm9200_clk_register_usb(struct at91_
{
struct at91rm9200_clk_usb *usb;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
usb = kzalloc(sizeof(*usb), GFP_KERNEL);
if (!usb)
@@ -99,7 +99,7 @@ at91_clk_register_utmi(struct at91_pmc *
int ret;
struct clk_utmi *utmi;
struct clk *clk = NULL;
- struct clk_init_data init;
+ struct clk_init_data init = {};
utmi = kzalloc(sizeof(*utmi), GFP_KERNEL);
if (!utmi)
@@ -244,7 +244,7 @@ void __init iproc_armpll_setup(struct de
int ret;
struct clk *clk;
struct iproc_arm_pll *pll;
- struct clk_init_data init;
+ struct clk_init_data init = {};
const char *parent_name;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
@@ -216,7 +216,7 @@ void __init iproc_asiu_setup(struct devi
goto err_iomap_gate;
for (i = 0; i < num_clks; i++) {
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
const char *parent_name;
struct iproc_asiu_clk *asiu_clk;
@@ -586,7 +586,7 @@ void __init iproc_pll_clk_setup(struct d
struct clk *clk;
struct iproc_pll *pll;
struct iproc_clk *iclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
const char *parent_name;
if (WARN_ON(!pll_ctrl) || WARN_ON(!clk_ctrl))
@@ -193,7 +193,7 @@ struct clk * __init berlin2_avpll_vco_re
u8 vco_flags, unsigned long flags)
{
struct berlin2_avpll_vco *vco;
- struct clk_init_data init;
+ struct clk_init_data init = {};
vco = kzalloc(sizeof(*vco), GFP_KERNEL);
if (!vco)
@@ -369,7 +369,7 @@ struct clk * __init berlin2_avpll_channe
u8 ch_flags, unsigned long flags)
{
struct berlin2_avpll_channel *ch;
- struct clk_init_data init;
+ struct clk_init_data init = {};
ch = kzalloc(sizeof(*ch), GFP_KERNEL);
if (!ch)
@@ -89,7 +89,7 @@ berlin2_pll_register(const struct berlin
void __iomem *base, const char *name,
const char *parent_name, unsigned long flags)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct berlin2_pll *pll;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
@@ -484,7 +484,7 @@ static int axi_clkgen_probe(struct platf
{
const struct of_device_id *id;
struct axi_clkgen *axi_clkgen;
- struct clk_init_data init;
+ struct clk_init_data init = {};
const char *parent_name;
const char *clk_name;
struct resource *mem;
@@ -571,7 +571,7 @@ static int cdce925_probe(struct i2c_clie
struct device_node *node = client->dev.of_node;
const char *parent_name;
const char *pll_clk_name[NUMBER_OF_PLLS] = {NULL,};
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
u32 value;
int i;
@@ -194,7 +194,7 @@ struct clk *clk_register_composite(struc
unsigned long flags)
{
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_composite *composite;
struct clk_ops *clk_composite_ops;
@@ -430,7 +430,7 @@ static struct clk *_register_divider(str
{
struct clk_divider *div;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (clk_divider_flags & CLK_DIVIDER_HIWORD_MASK) {
if (width + shift > 16) {
@@ -75,7 +75,7 @@ struct clk *clk_register_fixed_factor(st
unsigned int mult, unsigned int div)
{
struct clk_fixed_factor *fix;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
fix = kmalloc(sizeof(*fix), GFP_KERNEL);
@@ -62,7 +62,7 @@ struct clk *clk_register_fixed_rate_with
{
struct clk_fixed_rate *fixed;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate fixed-rate clock */
fixed = kzalloc(sizeof(*fixed), GFP_KERNEL);
@@ -113,7 +113,7 @@ struct clk *clk_register_fractional_divi
u8 clk_divider_flags, spinlock_t *lock)
{
struct clk_fractional_divider *fd;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
fd = kzalloc(sizeof(*fd), GFP_KERNEL);
@@ -129,7 +129,7 @@ struct clk *clk_register_gate(struct dev
{
struct clk_gate *gate;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (clk_gate_flags & CLK_GATE_HIWORD_MASK) {
if (bit_idx > 15) {
@@ -279,7 +279,7 @@ static __init struct clk *hb_clk_init(st
struct hb_clk *hb_clk;
const char *clk_name = node->name;
const char *parent_name;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct device_node *srnp;
int rc;
@@ -55,7 +55,7 @@ static struct clk *__init clk_register_p
{
struct clk_hw *hw;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate the divider */
hw = kzalloc(sizeof(struct clk_hw), GFP_KERNEL);
@@ -182,7 +182,7 @@ struct mb86s70_crg11 {
static struct clk *crg11_get(struct of_phandle_args *clkspec, void *data)
{
struct mb86s70_crg11 *crg11 = data;
- struct clk_init_data init;
+ struct clk_init_data init = {};
u32 cntrlr, domain, port;
struct crg_clk *crgclk;
struct clk *clk;
@@ -329,7 +329,7 @@ static struct clk_ops clk_clc_ops = {
struct clk *mb86s7x_clclk_register(struct device *cpu_dev)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct cl_clk *clc;
clc = kzalloc(sizeof(*clc), GFP_KERNEL);
@@ -124,7 +124,7 @@ struct clk *clk_register_mux_table(struc
{
struct clk_mux *mux;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
u8 width = 0;
if (clk_mux_flags & CLK_MUX_HIWORD_MASK) {
@@ -259,7 +259,7 @@ pll_clk_register(struct device *dev, con
{
struct clk *clk;
struct clk_pll *pll;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (id != 1 && id != 2) {
pr_err("%s: the Nomadik has only PLL 1 & 2\n", __func__);
@@ -351,7 +351,7 @@ src_clk_register(struct device *dev, con
{
struct clk *clk;
struct clk_src *sclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
if (!sclk) {
@@ -56,7 +56,7 @@ static const struct clk_ops clk_pwm_ops
static int clk_pwm_probe(struct platform_device *pdev)
{
struct device_node *node = pdev->dev.of_node;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_pwm *clk_pwm;
struct pwm_device *pwm;
const char *clk_name;
@@ -67,7 +67,7 @@ static const struct clk_ops cmux_ops = {
static void __init core_mux_init(struct device_node *np)
{
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct cmux_clk *cmux_clk;
struct device_node *node;
int rc, count, i;
@@ -1310,7 +1310,7 @@ static int si5351_i2c_probe(struct i2c_c
enum si5351_variant variant = (enum si5351_variant)id->driver_data;
struct si5351_platform_data *pdata;
struct si5351_driver_data *drvdata;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
const char *parent_names[4];
u8 num_parents, num_clocks;
@@ -407,7 +407,7 @@ static int si570_probe(struct i2c_client
const struct i2c_device_id *id)
{
struct clk_si570 *data;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
u32 initial_fout, factory_fout, stability;
int err;
@@ -207,7 +207,7 @@ static struct clk *clk_register_apb_mul(
unsigned long flags, u8 bit_idx)
{
struct clk_apb_mul *am;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
am = kzalloc(sizeof(*am), GFP_KERNEL);
@@ -699,7 +699,7 @@ syscon_clk_register(struct device *dev,
{
struct clk *clk;
struct clk_syscon *sclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
sclk = kzalloc(sizeof(struct clk_syscon), GFP_KERNEL);
if (!sclk) {
@@ -1117,7 +1117,7 @@ mclk_clk_register(struct device *dev, co
{
struct clk *clk;
struct clk_mclk *mclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
mclk = kzalloc(sizeof(struct clk_mclk), GFP_KERNEL);
if (!mclk) {
@@ -236,7 +236,7 @@ static __init void vtwm_device_clk_init(
struct clk_device *dev_clk;
const char *clk_name = node->name;
const char *parent_name;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
int clk_init_flags = 0;
@@ -654,7 +654,7 @@ static __init void vtwm_pll_clk_init(str
struct clk_pll *pll_clk;
const char *clk_name = node->name;
const char *parent_name;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
if (!pmc_base)
@@ -130,7 +130,7 @@ static struct clk *xgene_register_clk_pl
{
struct xgene_clk_pll *apmclk;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate the APM clock structure */
apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL);
@@ -402,7 +402,7 @@ static struct clk *xgene_register_clk(st
{
struct xgene_clk *apmclk;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
/* allocate the APM clock structure */
@@ -88,7 +88,7 @@ static void __init h8s2678_pll_clk_setup
const char *clk_name = node->name;
const char *parent_name;
struct pll_clock *pll_clock;
- struct clk_init_data init;
+ struct clk_init_data init = {};
num_parents = of_clk_get_parent_count(node);
if (num_parents < 1) {
@@ -427,7 +427,7 @@ static struct clk *hisi_register_clk_mmc
{
struct clk_mmc *mclk;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
mclk = kzalloc(sizeof(*mclk), GFP_KERNEL);
if (!mclk) {
@@ -197,7 +197,7 @@ static const struct clk_ops hi6220_stub_
static int hi6220_stub_clk_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct hi6220_stub_clk *stub_clk;
struct clk *clk;
struct device_node *np = pdev->dev.of_node;
@@ -262,7 +262,7 @@ hix5hd2_clk_register_complex(struct hix5
for (i = 0; i < nums; i++) {
struct hix5hd2_clk_complex *p_clk;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL);
if (!p_clk)
@@ -105,7 +105,7 @@ struct clk *hi6220_register_clkdiv(struc
{
struct hi6220_clk_divider *div;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_div_table *table;
u32 max_div, min_div;
int i;
@@ -102,7 +102,7 @@ struct clk *hisi_register_clkgate_sep(st
{
struct clkgate_separated *sclk;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
if (!sclk) {
@@ -84,7 +84,7 @@ struct clk *imx_clk_busy_divider(const c
{
struct clk_busy_divider *busy;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
busy = kzalloc(sizeof(*busy), GFP_KERNEL);
if (!busy)
@@ -158,7 +158,7 @@ struct clk *imx_clk_busy_mux(const char
{
struct clk_busy_mux *busy;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
busy = kzalloc(sizeof(*busy), GFP_KERNEL);
if (!busy)
@@ -81,7 +81,7 @@ struct clk *imx_clk_cpu(const char *name
{
struct clk_cpu *cpu;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
cpu = kzalloc(sizeof(*cpu), GFP_KERNEL);
if (!cpu)
@@ -98,7 +98,7 @@ struct clk *imx_clk_fixup_divider(const
{
struct clk_fixup_div *fixup_div;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!fixup)
return ERR_PTR(-EINVAL);
@@ -77,7 +77,7 @@ struct clk *imx_clk_fixup_mux(const char
{
struct clk_fixup_mux *fixup_mux;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (!fixup)
return ERR_PTR(-EINVAL);
@@ -64,7 +64,7 @@ struct clk *imx_clk_gate_exclusive(const
struct clk_gate_exclusive *exgate;
struct clk_gate *gate;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (exclusive_mask == 0)
return ERR_PTR(-EINVAL);
@@ -131,7 +131,7 @@ struct clk *clk_register_gate2(struct de
{
struct clk_gate2 *gate;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
gate = kzalloc(sizeof(struct clk_gate2), GFP_KERNEL);
if (!gate)
@@ -132,7 +132,7 @@ struct clk *imx_clk_pfd(const char *name
{
struct clk_pfd *pfd;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pfd = kzalloc(sizeof(*pfd), GFP_KERNEL);
if (!pfd)
@@ -115,7 +115,7 @@ struct clk *imx_clk_pllv1(enum imx_pllv1
{
struct clk_pllv1 *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kmalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -242,7 +242,7 @@ struct clk *imx_clk_pllv2(const char *na
{
struct clk_pllv2 *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -289,7 +289,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3
struct clk_pllv3 *pll;
const struct clk_ops *ops;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -502,7 +502,7 @@ static const struct clk_ops ingenic_clk_
static int ingenic_register_clock(struct ingenic_cgu *cgu, unsigned idx)
{
const struct ingenic_cgu_clk_info *clk_info = &cgu->clock_info[idx];
- struct clk_init_data clk_init;
+ struct clk_init_data clk_init = {};
struct ingenic_clk *ingenic_clk = NULL;
struct clk *clk, *parent;
const char *parent_names[4];
@@ -168,7 +168,7 @@ static struct clk *clk_register_psc(stru
struct clk_psc_data *psc_data,
spinlock_t *lock)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_psc *psc;
struct clk *clk;
@@ -126,7 +126,7 @@ static struct clk *clk_register_pll(stru
const char *parent_name,
struct clk_pll_data *pll_data)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_pll *pll;
struct clk *clk;
@@ -189,7 +189,7 @@ struct clk *meson_clk_register_cpu(const
struct clk *clk;
struct clk *pclk;
struct meson_clk_cpu *clk_cpu;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int ret;
clk_cpu = kzalloc(sizeof(*clk_cpu), GFP_KERNEL);
@@ -189,7 +189,7 @@ struct clk *meson_clk_register_pll(const
{
struct clk *clk;
struct meson_clk_pll *clk_pll;
- struct clk_init_data init;
+ struct clk_init_data init = {};
clk_pll = kzalloc(sizeof(*clk_pll), GFP_KERNEL);
if (!clk_pll)
@@ -125,7 +125,7 @@ struct clk *mmp_clk_register_apbc(const
{
struct clk_apbc *apbc;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
apbc = kzalloc(sizeof(*apbc), GFP_KERNEL);
if (!apbc)
@@ -70,7 +70,7 @@ struct clk *mmp_clk_register_apmu(const
{
struct clk_apmu *apmu;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
apmu = kzalloc(sizeof(*apmu), GFP_KERNEL);
if (!apmu)
@@ -163,7 +163,7 @@ struct clk *mmp_clk_register_factor(cons
unsigned int ftbl_cnt, spinlock_t *lock)
{
struct mmp_clk_factor *factor;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
if (!masks) {
@@ -99,7 +99,7 @@ struct clk *mmp_clk_register_gate(struct
{
struct mmp_clk_gate *gate;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate the gate */
gate = kzalloc(sizeof(*gate), GFP_KERNEL);
@@ -447,7 +447,7 @@ struct clk *mmp_clk_register_mix(struct
{
struct mmp_clk_mix *mix;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
size_t table_bytes;
mix = kzalloc(sizeof(*mix), GFP_KERNEL);
@@ -236,7 +236,7 @@ static void __init
mvebu_corediv_clk_init(struct device_node *node,
const struct clk_corediv_soc_desc *soc_desc)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_corediv *corediv;
struct clk **clks;
void __iomem *base;
@@ -195,7 +195,7 @@ static void __init of_cpu_clk_setup(stru
goto clks_out;
for_each_node_by_type(dn, "cpu") {
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
char *clk_name = kzalloc(5, GFP_KERNEL);
int cpu, err;
@@ -78,7 +78,7 @@ struct clk *mxs_clk_div(const char *name
{
struct clk_div *div;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
div = kzalloc(sizeof(*div), GFP_KERNEL);
if (!div)
@@ -112,7 +112,7 @@ struct clk *mxs_clk_frac(const char *nam
{
struct clk_frac *frac;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
frac = kzalloc(sizeof(*frac), GFP_KERNEL);
if (!frac)
@@ -90,7 +90,7 @@ struct clk *mxs_clk_pll(const char *name
{
struct clk_pll *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -129,7 +129,7 @@ struct clk *mxs_clk_ref(const char *name
{
struct clk_ref *ref;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
ref = kzalloc(sizeof(*ref), GFP_KERNEL);
if (!ref)
@@ -453,7 +453,7 @@ static struct clk *pll_register(const ch
unsigned int nr_rates)
{
struct pistachio_clk_pll *pll;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
@@ -238,7 +238,7 @@ struct clk *rockchip_clk_register_cpuclk
int nrates, void __iomem *reg_base, spinlock_t *lock)
{
struct rockchip_cpuclk *cpuclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk, *cclk;
int ret;
@@ -84,7 +84,7 @@ struct clk *rockchip_clk_register_invert
void __iomem *reg, int shift, int flags,
spinlock_t *lock)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct rockchip_inv_clock *inv_clock;
struct clk *clk;
@@ -126,7 +126,7 @@ struct clk *rockchip_clk_register_mmc(co
const char *const *parent_names, u8 num_parents,
void __iomem *reg, int shift)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct rockchip_mmc_clock *mmc_clock;
struct clk *clk;
@@ -335,7 +335,7 @@ struct clk *rockchip_clk_register_pll(en
u8 clk_pll_flags, spinlock_t *lock)
{
const char *pll_parents[3];
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct rockchip_clk_pll *pll;
struct clk_mux *pll_mux;
struct clk *pll_clk, *mux_clk;
@@ -281,7 +281,7 @@ int __init exynos_register_cpu_clock(str
unsigned long num_cfgs, unsigned long flags)
{
struct exynos_cpuclk *cpuclk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
int ret = 0;
@@ -929,7 +929,7 @@ struct clk * __init samsung_clk_register
{
struct samsung_clk_pll2550x *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll) {
@@ -1163,7 +1163,7 @@ static void __init _samsung_clk_register
{
struct samsung_clk_pll *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int ret, len;
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
@@ -97,7 +97,7 @@ static struct clk *s3c24xx_register_clko
{
struct s3c24xx_clkout *clkout;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate the clkout */
clkout = kzalloc(sizeof(*clkout), GFP_KERNEL);
@@ -176,7 +176,7 @@ static void __init cpg_div6_clock_init(s
{
unsigned int num_parents, valid_parents;
const char **parent_names;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct div6_clock *clock;
const char *name;
struct clk *clk;
@@ -131,7 +131,7 @@ static struct clk * __init
cpg_mstp_clock_register(const char *name, const char *parent_name,
unsigned int index, struct mstp_clock_group *group)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct mstp_clock *clock;
struct clk *clk;
@@ -138,7 +138,7 @@ static const struct clk_ops cpg_z_clk_op
static struct clk * __init cpg_z_clk_register(struct rcar_gen2_cpg *cpg)
{
static const char *parent_name = "pll0";
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct cpg_z_clk *zclk;
struct clk *clk;
@@ -1236,7 +1236,7 @@ atlas7_unit_clk_register(struct device *
{
struct clk *clk;
struct clk_unit *unit;
- struct clk_init_data init;
+ struct clk_init_data init = {};
unit = kzalloc(sizeof(*unit), GFP_KERNEL);
if (!unit)
@@ -113,7 +113,7 @@ static void __init __socfpga_gate_init(s
struct socfpga_gate_clk *socfpga_clk;
const char *clk_name = node->name;
const char *parent_name[SOCFPGA_MAX_PARENTS];
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
int i = 0;
@@ -187,7 +187,7 @@ static void __init __socfpga_gate_init(s
struct socfpga_gate_clk *socfpga_clk;
const char *clk_name = node->name;
const char *parent_name[SOCFPGA_MAX_PARENTS];
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL);
@@ -75,7 +75,7 @@ static __init void __socfpga_periph_init
struct socfpga_periph_clk *periph_clk;
const char *clk_name = node->name;
const char *parent_name;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
u32 fixed_div;
u32 div_reg[3];
@@ -65,7 +65,7 @@ static __init void __socfpga_periph_init
struct socfpga_periph_clk *periph_clk;
const char *clk_name = node->name;
const char *parent_name[SOCFPGA_MAX_PARENTS];
- struct clk_init_data init;
+ struct clk_init_data init = {};
int rc;
u32 fixed_div;
u32 div_reg[3];
@@ -82,7 +82,7 @@ static struct __init clk * __socfpga_pll
struct socfpga_pll *pll_clk;
const char *clk_name = node->name;
const char *parent_name[SOCFGPA_MAX_PARENTS];
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct device_node *clkmgr_np;
int rc;
int i = 0;
@@ -88,7 +88,7 @@ static __init struct clk *__socfpga_pll_
struct socfpga_pll *pll_clk;
const char *clk_name = node->name;
const char *parent_name[SOCFPGA_MAX_PARENTS];
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct device_node *clkmgr_np;
int rc;
@@ -140,7 +140,7 @@ struct clk *clk_register_aux(const char
u8 rtbl_cnt, spinlock_t *lock, struct clk **gate_clk)
{
struct clk_aux *aux;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
if (!aux_name || !parent_name || !reg || !rtbl || !rtbl_cnt) {
@@ -126,7 +126,7 @@ struct clk *clk_register_frac(const char
unsigned long flags, void __iomem *reg,
struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_frac *frac;
struct clk *clk;
@@ -115,7 +115,7 @@ struct clk *clk_register_gpt(const char
long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8
rtbl_cnt, spinlock_t *lock)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk_gpt *gpt;
struct clk *clk;
@@ -282,7 +282,8 @@ struct clk *clk_register_vco_pll(const c
struct clk_vco *vco;
struct clk_pll *pll;
struct clk *vco_clk, *tpll_clk, *tvco_gate_clk;
- struct clk_init_data vco_init, pll_init;
+ struct clk_init_data vco_init = {};
+ struct clk_init_data pll_init = {};
const char **vco_parent_name;
if (!vco_name || !pll_name || !parent_name || !mode_reg || !cfg_reg ||
@@ -181,7 +181,7 @@ static struct clk *clk_register_flexgen(
unsigned long flexgen_flags) {
struct flexgen *fgxbar;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
u32 xbar_shift;
void __iomem *xbar_reg, *fdiv_reg;
@@ -622,7 +622,7 @@ static struct clk * __init st_clk_regist
{
struct st_clk_quadfs_pll *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/*
* Sanity check required pointers.
@@ -1026,7 +1026,7 @@ static struct clk * __init st_clk_regist
{
struct st_clk_quadfs_fsynth *fs;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/*
* Sanity check required pointers, note that nsdiv3 is optional.
@@ -226,7 +226,7 @@ static struct clk * __init clk_register_
const int divider_width = 5;
struct clkgena_divmux *genamux;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
int i;
genamux = kzalloc(sizeof(*genamux), GFP_KERNEL);
@@ -398,7 +398,7 @@ static struct clk * __init clkgen_pll_re
{
struct clkgen_pll *pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
if (!pll)
@@ -177,7 +177,7 @@ static int sun6i_a31_ar100_clk_probe(str
const char *parents[SUN6I_AR100_MAX_PARENTS];
struct device_node *np = pdev->dev.of_node;
const char *clk_name = np->name;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct ar100_clk *ar100;
struct resource *r;
struct clk *clk;
@@ -58,7 +58,7 @@ struct clk *tegra_clk_register_sync_sour
unsigned long rate, unsigned long max_rate)
{
struct tegra_clk_sync_source *sync;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct clk *clk;
sync = kzalloc(sizeof(*sync), GFP_KERNEL);
@@ -153,7 +153,7 @@ struct clk *tegra_clk_register_divider(c
{
struct tegra_clk_frac_div *divider;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
divider = kzalloc(sizeof(*divider), GFP_KERNEL);
if (!divider) {
@@ -473,7 +473,7 @@ struct clk *tegra_clk_register_emc(void
spinlock_t *lock)
{
struct tegra_clk_emc *tegra;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct device_node *node;
u32 node_ram_code;
struct clk *clk;
@@ -133,7 +133,7 @@ struct clk *tegra_clk_register_periph_ga
{
struct tegra_clk_periph_gate *gate;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct tegra_clk_periph_regs *pregs;
pregs = get_reg_bank(clk_num);
@@ -144,7 +144,7 @@ static struct clk *_tegra_clk_register_p
unsigned long flags)
{
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct tegra_clk_periph_regs *bank;
bool div = !(periph->gate.flags & TEGRA_PERIPH_NO_DIV);
@@ -93,7 +93,7 @@ struct clk *tegra_clk_register_pll_out(c
{
struct tegra_clk_pll_out *pll_out;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
pll_out = kzalloc(sizeof(*pll_out), GFP_KERNEL);
if (!pll_out)
@@ -1437,7 +1437,7 @@ static struct clk *_tegra_clk_register_p
const char *name, const char *parent_name, unsigned long flags,
const struct clk_ops *ops)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
init.name = name;
init.ops = ops;
@@ -133,7 +133,7 @@ struct clk *tegra_clk_register_super_mux
{
struct tegra_clk_super_mux *super;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
super = kzalloc(sizeof(*super), GFP_KERNEL);
if (!super) {
@@ -168,7 +168,7 @@ static const struct clk_ops atl_clk_ops
static void __init of_dra7_atl_clock_setup(struct device_node *node)
{
struct dra7_atl_desc *clk_hw = NULL;
- struct clk_init_data init = { NULL };
+ struct clk_init_data init = {};
const char **parent_names = NULL;
struct clk *clk;
@@ -261,7 +261,7 @@ static struct clk *_register_divider(str
{
struct clk_divider *div;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
if (clk_divider_flags & CLK_DIVIDER_HIWORD_MASK) {
if (width + shift > 16) {
@@ -194,7 +194,7 @@ static void __iomem *_get_reg(u8 module,
struct clk *ti_clk_register_dpll(struct ti_clk *setup)
{
struct clk_hw_omap *clk_hw;
- struct clk_init_data init = { NULL };
+ struct clk_init_data init = {};
struct dpll_data *dd;
struct clk *clk;
struct ti_clk_dpll *dpll;
@@ -291,7 +291,7 @@ static void _register_dpll_x2(struct dev
const struct clk_hw_omap_ops *hw_ops)
{
struct clk *clk;
- struct clk_init_data init = { NULL };
+ struct clk_init_data init = {};
struct clk_hw_omap *clk_hw;
const char *name = node->name;
const char *parent_name;
@@ -98,7 +98,7 @@ static struct clk *_register_gate(struct
u8 clk_gate_flags, const struct clk_ops *ops,
const struct clk_hw_omap_ops *hw_ops)
{
- struct clk_init_data init = { NULL };
+ struct clk_init_data init = {};
struct clk_hw_omap *clk_hw;
struct clk *clk;
@@ -37,7 +37,7 @@ static struct clk *_register_interface(s
void __iomem *reg, u8 bit_idx,
const struct clk_hw_omap_ops *ops)
{
- struct clk_init_data init = { NULL };
+ struct clk_init_data init = {};
struct clk_hw_omap *clk_hw;
struct clk *clk;
@@ -113,7 +113,7 @@ static struct clk *_register_mux(struct
{
struct clk_mux *mux;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
/* allocate the mux */
mux = kzalloc(sizeof(*mux), GFP_KERNEL);
@@ -99,7 +99,7 @@ static struct clk *clk_reg_prcc(const ch
struct clk_ops *clk_prcc_ops)
{
struct clk_prcc *clk;
- struct clk_init_data clk_prcc_init;
+ struct clk_init_data clk_prcc_init = {};
struct clk *clk_reg;
if (!name) {
@@ -250,7 +250,7 @@ static struct clk *clk_reg_prcmu(const c
struct clk_ops *clk_prcmu_ops)
{
struct clk_prcmu *clk;
- struct clk_init_data clk_prcmu_init;
+ struct clk_init_data clk_prcmu_init = {};
struct clk *clk_reg;
if (!name) {
@@ -127,7 +127,7 @@ static struct clk *clk_reg_sysctrl(struc
struct clk_ops *clk_sysctrl_ops)
{
struct clk_sysctrl *clk;
- struct clk_init_data clk_sysctrl_init;
+ struct clk_init_data clk_sysctrl_init = {};
struct clk *clk_reg;
int i;
@@ -130,7 +130,7 @@ struct clk *icst_clk_register(struct dev
{
struct clk *clk;
struct clk_icst *icst;
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct icst_params *pclone;
icst = kzalloc(sizeof(struct clk_icst), GFP_KERNEL);
@@ -91,7 +91,7 @@ static void __init clk_sp810_of_setup(st
const char *parent_names[2];
int num = ARRAY_SIZE(parent_names);
char name[12];
- struct clk_init_data init;
+ struct clk_init_data init = {};
int i;
bool deprecated;
@@ -70,7 +70,7 @@ static struct clk_ops vexpress_osc_ops =
static int vexpress_osc_probe(struct platform_device *pdev)
{
- struct clk_init_data init;
+ struct clk_init_data init = {};
struct vexpress_osc *osc;
struct clk *clk;
u32 range[2];
@@ -149,7 +149,7 @@ struct clk *clk_register_zx_pll(const ch
{
struct clk_zx_pll *zx_pll;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
zx_pll = kzalloc(sizeof(*zx_pll), GFP_KERNEL);
if (!zx_pll)
@@ -286,7 +286,7 @@ struct clk *clk_register_zx_audio(const
{
struct clk_zx_audio *zx_audio;
struct clk *clk;
- struct clk_init_data init;
+ struct clk_init_data init = {};
zx_audio = kzalloc(sizeof(*zx_audio), GFP_KERNEL);
if (!zx_audio)