mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
phy: rockchip: usb: Initialize in stack clk_init_data to 0
This allows adding fields to clk_init_data without having to explicitly
set those fields in all the drivers.
Fixes: 2071154513 ("ANDROID: GKI: clk: Initialize in stack clk_init_data to 0 in all drivers")
Change-Id: I4593151b2624d2ccfaf477d36ff1f4d331f2ca91
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
a3b4a03c99
commit
ada2a1cee3
|
|
@ -664,7 +664,7 @@ static int rockchip_usb_phy_init(struct rockchip_usb_phy_base *base,
|
|||
struct rockchip_usb_phy *rk_phy;
|
||||
unsigned int reg_offset;
|
||||
const char *clk_name;
|
||||
struct clk_init_data init;
|
||||
struct clk_init_data init = {};
|
||||
int err, i;
|
||||
|
||||
rk_phy = devm_kzalloc(base->dev, sizeof(*rk_phy), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user