author: Bartosz Golaszewski <bgolaszewski@baylibre.com> 2020-11-09 17:34:08 +0100
committer: Alexandre Belloni <alexandre.belloni@bootlin.com> 2020-11-19 12:50:12 +0100
commit: fdcfd854333be5b30377dc5daa9cd0fa1643a979
parent: 6746bc095bbd1da719aadd9a11fe2c75a12f22e0
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/alpha/kernel/rtc.c b/arch/alpha/kernel/rtc.c
index 1b1d5963ac55..ce3077946e1d 100644
--- a/arch/alpha/kernel/rtc.c
+++ b/arch/alpha/kernel/rtc.c
@@ -216,6 +216,6 @@ alpha_rtc_init(void)
rtc->ops = &remote_rtc_ops;
#endif
- return rtc_register_device(rtc);
+ return devm_rtc_register_device(rtc);
}
device_initcall(alpha_rtc_init);