hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/clk/davinci/da8xx-cfgchip.c
....@@ -91,7 +91,7 @@
9191 struct clk *parent;
9292 const char *parent_name;
9393 struct da8xx_cfgchip_gate_clk *gate;
94
- struct clk_init_data init = {};
94
+ struct clk_init_data init;
9595 int ret;
9696
9797 parent = devm_clk_get(dev, NULL);
....@@ -160,10 +160,8 @@
160160 struct da8xx_cfgchip_gate_clk *gate;
161161
162162 gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_div4p5ena_info, regmap);
163
- if (IS_ERR(gate))
164
- return PTR_ERR(gate);
165163
166
- return 0;
164
+ return PTR_ERR_OR_ZERO(gate);
167165 }
168166
169167 static int __init
....@@ -242,7 +240,7 @@
242240 {
243241 const char * const parent_names[] = { info->parent0, info->parent1 };
244242 struct da8xx_cfgchip_mux_clk *mux;
245
- struct clk_init_data init = {};
243
+ struct clk_init_data init;
246244 int ret;
247245
248246 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL);
....@@ -507,7 +505,7 @@
507505 const char * const parent_names[] = { "usb_refclkin", "pll0_auxclk" };
508506 struct clk *fck_clk;
509507 struct da8xx_usb0_clk48 *usb0;
510
- struct clk_init_data init = {};
508
+ struct clk_init_data init;
511509 int ret;
512510
513511 fck_clk = devm_clk_get(dev, "fck");
....@@ -573,6 +571,7 @@
573571
574572 /**
575573 * da8xx_cfgchip_register_usb1_clk48 - Register a new USB 1.1 PHY clock
574
+ * @dev: The device
576575 * @regmap: The CFGCHIP regmap
577576 */
578577 static struct da8xx_usb1_clk48 *
....@@ -581,7 +580,7 @@
581580 {
582581 const char * const parent_names[] = { "usb0_clk48", "usb_refclkin" };
583582 struct da8xx_usb1_clk48 *usb1;
584
- struct clk_init_data init = {};
583
+ struct clk_init_data init;
585584 int ret;
586585
587586 usb1 = devm_kzalloc(dev, sizeof(*usb1), GFP_KERNEL);