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: 2071154513 ("ANDROID: GKI: clk: Initialize in stack clk_init_data to 0 in all drivers")
Change-Id: Idb2d492d2ceba3029d334777c0c784bce4676666
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-06-09 14:29:04 +08:00
parent ada2a1cee3
commit 4600ef8027

View File

@@ -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,