Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-18 21:58:11 +07:00

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
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)

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