summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sun4v.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-sun4v.c')
-rw-r--r--drivers/rtc/rtc-sun4v.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sun4v.c b/drivers/rtc/rtc-sun4v.c
index 036463dfa103..a86e27de8c06 100644
--- a/drivers/rtc/rtc-sun4v.c
+++ b/drivers/rtc/rtc-sun4v.c
@@ -86,7 +86,7 @@ static int __init sun4v_rtc_probe(struct platform_device *pdev)
rtc->range_max = U64_MAX;
platform_set_drvdata(pdev, rtc);
- return rtc_register_device(rtc);
+ return devm_rtc_register_device(rtc);
}
static struct platform_driver sun4v_rtc_driver = {