drivers: rtc: hym8563: fix hym8563 init failed

Return -EPROBE_DEFER when init hym8563 failed.

Signed-off-by: Ken Wang <ken@radxa.com>
This commit is contained in:
Ken Wang 2024-04-10 17:28:59 +08:00 committed by Stephen Chen
commit 2d0e9182a6

View file

@ -570,7 +570,7 @@ static int hym8563_probe(struct i2c_client *client)
ret = hym8563_init_device(client);
if (ret) {
dev_err(&client->dev, "could not init device, %d\n", ret);
return ret;
return -EPROBE_DEFER;
}
if (client->irq > 0) {