summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-imx-sc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-imx-sc.c')
-rw-r--r--drivers/rtc/rtc-imx-sc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c
index a5f59e6f862e..cc9fbab49999 100644
--- a/drivers/rtc/rtc-imx-sc.c
+++ b/drivers/rtc/rtc-imx-sc.c
@@ -166,7 +166,7 @@ static int imx_sc_rtc_probe(struct platform_device *pdev)
imx_sc_rtc->range_min = 0;
imx_sc_rtc->range_max = U32_MAX;
- ret = rtc_register_device(imx_sc_rtc);
+ ret = devm_rtc_register_device(imx_sc_rtc);
if (ret)
return ret;