From ada2a1cee339643433ccd28d8a39e4b289688169 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 9 Jun 2020 14:28:04 +0800 Subject: [PATCH] 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: 2071154513ec ("ANDROID: GKI: clk: Initialize in stack clk_init_data to 0 in all drivers") Change-Id: I4593151b2624d2ccfaf477d36ff1f4d331f2ca91 Signed-off-by: Tao Huang --- drivers/phy/rockchip/phy-rockchip-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/rockchip/phy-rockchip-usb.c b/drivers/phy/rockchip/phy-rockchip-usb.c index b483ef71d197..3591c0ac5a16 100644 --- a/drivers/phy/rockchip/phy-rockchip-usb.c +++ b/drivers/phy/rockchip/phy-rockchip-usb.c @@ -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);