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)
{
struct clk_generated *gck;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_hw *hw;
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)
{
struct clk_sama5d4_h32mx *h32mxclk;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parent_name;
struct regmap *regmap;
int ret;

View file

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

View file

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

View file

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

View file

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

View file

@ -81,7 +81,7 @@ at91_clk_register_plldiv(struct regmap *regmap, const char *name,
{
struct clk_plldiv *plldiv;
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
if (!name)

View file

@ -117,7 +117,7 @@ at91sam9x5_clk_register_smd(struct regmap *regmap, const char *name,
{
struct at91sam9x5_clk_smd *smd;
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
if (!sckcr || !name)
@ -344,7 +344,7 @@ at91_clk_register_sam9x5_slow(void __iomem *sckcr,
{
struct clk_sam9x5_slow *slowck;
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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);
struct clk_hw *hw;
struct clk_sama5d4_slow_osc *osc;
struct clk_init_data init;
struct clk_init_data init = {};
const char *xtal_name;
const char *parent_names[2] = { "slow_rc_osc", "slow_osc" };
bool bypass;

View file

@ -170,7 +170,7 @@ static int i2s_pll_clk_probe(struct platform_device *pdev)
const char *parent_name;
struct clk *clk;
struct i2s_pll_clk *pll_clk;
struct clk_init_data init;
struct clk_init_data init = {};
struct resource *mem;
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)
{
struct bcm2835_pll *pll;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
memset(&init, 0, sizeof(init));
@ -1329,7 +1329,7 @@ bcm2835_register_pll_divider(struct bcm2835_cprman *cprman,
const struct bcm2835_pll_divider_data *data)
{
struct bcm2835_pll_divider *divider;
struct clk_init_data init;
struct clk_init_data init = {};
const char *divider_name;
int ret;
@ -1388,7 +1388,7 @@ static struct clk_hw *bcm2835_register_clock(struct bcm2835_cprman *cprman,
const struct bcm2835_clock_data *data)
{
struct bcm2835_clock *clock;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parents[1 << CM_SRC_BITS];
size_t i;
int ret;

View file

@ -245,7 +245,7 @@ void __init iproc_armpll_setup(struct device_node *node)
{
int ret;
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);

View file

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

View file

@ -732,7 +732,7 @@ void iproc_pll_clk_setup(struct device_node *node,
int i, ret;
struct iproc_pll *pll;
struct iproc_clk *iclk;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parent_name;
struct iproc_clk *iclk_array;
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)
{
struct berlin2_avpll_vco *vco;
struct clk_init_data init;
struct clk_init_data init = {};
vco = kzalloc(sizeof(*vco), GFP_KERNEL);
if (!vco)
@ -358,7 +358,7 @@ int __init berlin2_avpll_channel_register(void __iomem *base,
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)

View file

@ -78,7 +78,7 @@ berlin2_pll_register(const struct berlin2_pll_map *map,
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);

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)
{
struct aspeed_clk_gate *gate;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_hw *hw;
int ret;

View file

@ -411,7 +411,7 @@ static int axi_clkgen_probe(struct platform_device *pdev)
{
const struct of_device_id *id;
struct axi_clkgen *axi_clkgen;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parent_names[2];
const char *clk_name;
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;
const char *parent_name;
const char *pll_clk_name[MAX_NUMBER_OF_PLLS] = {NULL,};
struct clk_init_data init;
struct clk_init_data init = {};
u32 value;
int i;
int err;

View file

@ -219,7 +219,7 @@ struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name,
unsigned long flags)
{
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_composite *composite;
struct clk_ops *clk_composite_ops;
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_node *np = dev->of_node;
struct clk_init_data init;
struct clk_init_data init = {};
const char *name = np->name;
static const char *parent_names[CLK_MAX];
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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)
{
struct clk_fixed_factor *fix;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_hw *hw;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
/* 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)
{
struct clk_fractional_divider *fd;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_hw *hw;
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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 clk_gemini_pci *pciclk;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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;
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;

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_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
u8 width = 0;
int ret;

View file

@ -259,7 +259,7 @@ pll_clk_register(struct device *dev, const char *name,
{
int ret;
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, const char *name,
{
int ret;
struct clk_src *sclk;
struct clk_init_data init;
struct clk_init_data init = {};
sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
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)
{
struct npcm7xx_clk_pll *pll;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk_hw *hw;
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)
{
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;
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,
struct scpi_clk *sclk, const char *name)
{
struct clk_init_data init;
struct clk_init_data init = {};
unsigned long min = 0, max = 0;
int ret;

View file

@ -340,7 +340,7 @@ static int si514_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct clk_si514 *data;
struct clk_init_data init;
struct clk_init_data init = {};
int err;
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;
struct si5351_platform_data *pdata;
struct si5351_driver_data *drvdata;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parent_names[4];
u8 num_parents, num_clocks;
int ret, n;

View file

@ -373,7 +373,7 @@ static int si544_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct clk_si544 *data;
struct clk_init_data init;
struct clk_init_data init = {};
int err;
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)
{
struct clk_si570 *data;
struct clk_init_data init;
struct clk_init_data init = {};
u32 initial_fout, factory_fout, stability;
int err;
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)
{
struct clk_apb_mul *am;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *clk;
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 clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
/* allocate the divider */

View file

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

View file

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

View file

@ -699,7 +699,7 @@ syscon_clk_register(struct device *dev, const char *name,
{
struct clk_hw *hw;
struct clk_syscon *sclk;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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_mclk *mclk;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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)
{
struct vc5_driver_data *vc5;
struct clk_init_data init;
struct clk_init_data init = {};
const char *parent_names[2];
unsigned int n, idx = 0;
int ret;

View file

@ -236,7 +236,7 @@ static __init void vtwm_device_clk_init(struct device_node *node)
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;
@ -686,7 +686,7 @@ static __init void vtwm_pll_clk_init(struct device_node *node, int pll_type)
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)

View file

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

View file

@ -91,7 +91,7 @@ da8xx_cfgchip_gate_clk_register(struct device *dev,
struct clk *parent;
const char *parent_name;
struct da8xx_cfgchip_gate_clk *gate;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 };
struct da8xx_cfgchip_mux_clk *mux;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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" };
struct clk *fck_clk;
struct da8xx_usb0_clk48 *usb0;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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" };
struct da8xx_usb1_clk48 *usb1;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 postdiv_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_pllen_clk *pllen;
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,
u32 md, u32 pd, u32 flags)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct davinci_lpsc_clk *lpsc;
int ret;
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 *parent_name;
struct pll_clock *pll_clock;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
mclk = kzalloc(sizeof(*mclk), GFP_KERNEL);
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)
{
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;

View file

@ -95,7 +95,7 @@ struct clk *clk_register_hisi_phase(struct device *dev,
void __iomem *base, spinlock_t *lock)
{
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);
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++) {
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)

View file

@ -107,7 +107,7 @@ struct clk *hi6220_register_clkdiv(struct device *dev, const char *name,
{
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;

View file

@ -102,7 +102,7 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name,
{
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)

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 *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 *name, void __iomem *reg, u8 shift,
{
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)

View file

@ -81,7 +81,7 @@ struct clk *imx_clk_cpu(const char *name, const char *parent_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)

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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
if (!fixup)
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
if (!fixup)
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 *gate;
struct clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
if (exclusive_mask == 0)
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
gate = kzalloc(sizeof(struct clk_gate2), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
pfd = kzalloc(sizeof(*pfd), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
pll = kmalloc(sizeof(*pll), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
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;
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)

View file

@ -168,7 +168,7 @@ static struct clk *clk_register_psc(struct device *dev,
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;

View file

@ -126,7 +126,7 @@ static struct clk *clk_register_pll(struct device *dev,
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;

View file

@ -18,7 +18,7 @@ struct clk_hw *__init clk_hw_register_pll(struct device *dev,
{
int ret;
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
/* allocate the divider */
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 clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
cpumux = kzalloc(sizeof(*cpumux), GFP_KERNEL);
if (!cpumux)

View file

@ -655,7 +655,7 @@ static struct clk_hw *axg_clk_hw_register_bypass(struct device *dev,
const char *parent_name)
{
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
char *clk_name;
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
apbc = kzalloc(sizeof(*apbc), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
apmu = kzalloc(sizeof(*apmu), GFP_KERNEL);
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)
{
struct mmp_clk_factor *factor;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *clk;
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 clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
/* allocate the gate */
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 clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
size_t table_bytes;
mix = kzalloc(sizeof(*mix), GFP_KERNEL);

View file

@ -252,7 +252,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;

View file

@ -195,7 +195,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
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;

View file

@ -160,7 +160,7 @@ static struct clk_hw *cp110_register_gate(const char *name,
{
struct cp110_gate_clk *gate;
struct clk_hw *hw;
struct clk_init_data init;
struct clk_init_data init = {};
int ret;
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
div = kzalloc(sizeof(*div), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
frac = kzalloc(sizeof(*frac), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
pll = kzalloc(sizeof(*pll), GFP_KERNEL);
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 *clk;
struct clk_init_data init;
struct clk_init_data init = {};
ref = kzalloc(sizeof(*ref), GFP_KERNEL);
if (!ref)

View file

@ -141,7 +141,7 @@ static struct clk *clk_register_creg_clk(struct device *dev,
const char **parent_name,
struct regmap *syscon)
{
struct clk_init_data init;
struct clk_init_data init = {};
init.ops = creg_clk->ops;
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)
{
struct pistachio_clk_pll *pll;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *clk;
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)
{
unsigned int valid_parents;
struct clk_init_data init;
struct clk_init_data init = {};
struct div6_clock *clock;
struct clk *clk;
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,
struct mstp_clock_group *group)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct mstp_clock *clock;
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 const char *parent_name = "pll0";
struct clk_init_data init;
struct clk_init_data init = {};
struct cpg_z_clk *zclk;
struct clk *clk;

View file

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

View file

@ -170,7 +170,7 @@ static struct clk * __init cpg_z_clk_register(const char *name,
void __iomem *reg,
unsigned long mask)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct cpg_z_clk *zclk;
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,
struct raw_notifier_head *notifiers)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct sd_clock *clock;
struct clk *clk;
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 resource *res;
struct clk *clk;
struct clk_init_data init;
struct clk_init_data init = {};
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
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 device *dev = priv->dev;
unsigned int id = mod->id;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *parent, *clk;
const char *parent_name;
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)
{
struct rockchip_cpuclk *cpuclk;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *clk, *cclk;
int ret;

View file

@ -105,7 +105,7 @@ struct clk *rockchip_clk_register_ddrclk(const char *name, int flags,
spinlock_t *lock)
{
struct rockchip_ddrclk *ddrclk;
struct clk_init_data init;
struct clk_init_data init = {};
struct clk *clk;
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,
spinlock_t *lock)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct rockchip_inv_clock *inv_clock;
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,
void __iomem *reg, int shift)
{
struct clk_init_data init;
struct clk_init_data init = {};
struct rockchip_mmc_clock *mmc_clock;
struct clk *clk;
int ret;

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