aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-digicolor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-digicolor.c')
-rw-r--r--drivers/rtc/rtc-digicolor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c
index 200d85b01e8b..4fdfa5b6feb2 100644
--- a/drivers/rtc/rtc-digicolor.c
+++ b/drivers/rtc/rtc-digicolor.c
@@ -202,7 +202,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
rtc->rtc_dev->ops = &dc_rtc_ops;
rtc->rtc_dev->range_max = U32_MAX;
- return rtc_register_device(rtc->rtc_dev);
+ return devm_rtc_register_device(rtc->rtc_dev);
}
static const struct of_device_id dc_dt_ids[] = {