summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sd3078.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-sd3078.c')
-rw-r--r--drivers/rtc/rtc-sd3078.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sd3078.c b/drivers/rtc/rtc-sd3078.c
index a7aa943c1183..f6bee69ba017 100644
--- a/drivers/rtc/rtc-sd3078.c
+++ b/drivers/rtc/rtc-sd3078.c
@@ -192,7 +192,7 @@ static int sd3078_probe(struct i2c_client *client,
sd3078->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
sd3078->rtc->range_max = RTC_TIMESTAMP_END_2099;
- ret = rtc_register_device(sd3078->rtc);
+ ret = devm_rtc_register_device(sd3078->rtc);
if (ret)
return ret;