Merge tag 'perf-tools-2020-12-24' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / rtc / rtc-omap.c
index e65f79f..dc7db24 100644 (file)
@@ -886,7 +886,7 @@ static int omap_rtc_probe(struct platform_device *pdev)
                goto err;
        }
 
-       ret = rtc_register_device(rtc->rtc);
+       ret = devm_rtc_register_device(rtc->rtc);
        if (ret)
                goto err;