Skip to content

Commit 9bc2be6

Browse files
Ziyuan Xurkhuangtao
authored andcommitted
rtc: hym8563: fix the incorrect initialization
The **valid** is always false in __probe__ function, so that the time will be invalid at the first time. Fixes: 66af994 ("rtc: hym8563: add initialization data") Change-Id: Id7a245159ab0fc4e9980db5e538b05ff17a02d89 Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
1 parent b8154f1 commit 9bc2be6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/rtc/rtc-hym8563.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ static int hym8563_probe(struct i2c_client *client,
548548
return -ENOMEM;
549549

550550
hym8563->client = client;
551+
hym8563->valid = true;
551552
i2c_set_clientdata(client, hym8563);
552553

553554
device_set_wakeup_capable(&client->dev, true);

0 commit comments

Comments
 (0)