From 4600ef80270bc75d29b6fa95623b76bcd9da7d19 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 9 Jun 2020 14:29:04 +0800 Subject: [PATCH] rtc: hym8563: 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: Idb2d492d2ceba3029d334777c0c784bce4676666 Signed-off-by: Tao Huang --- drivers/rtc/rtc-hym8563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c index a8c2d38b2411..9c48d648a9ef 100644 --- a/drivers/rtc/rtc-hym8563.c +++ b/drivers/rtc/rtc-hym8563.c @@ -400,7 +400,7 @@ static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563) struct i2c_client *client = hym8563->client; struct device_node *node = client->dev.of_node; struct clk *clk; - struct clk_init_data init; + struct clk_init_data init = {}; int ret; ret = i2c_smbus_write_byte_data(client, HYM8563_CLKOUT,