rtc: rtc-rs5c313: Drop obsolete platform_set_drvdata() call
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 14 Aug 2020 11:07:29 +0000 (13:07 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 20 Aug 2020 22:13:44 +0000 (00:13 +0200)
Commit 284e2fa1da00a998 ("rtc: rtc-rs5c313: use
devm_rtc_device_register()"), removed the last user of the
driver-specific data.  Hence there is no longer a need to set it.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200814110731.29029-2-geert+renesas@glider.be
drivers/rtc/rtc-rs5c313.c

index 89f38e3..00b5ef7 100644 (file)
@@ -369,12 +369,7 @@ static int rs5c313_rtc_probe(struct platform_device *pdev)
        struct rtc_device *rtc = devm_rtc_device_register(&pdev->dev, "rs5c313",
                                &rs5c313_rtc_ops, THIS_MODULE);
 
-       if (IS_ERR(rtc))
-               return PTR_ERR(rtc);
-
-       platform_set_drvdata(pdev, rtc);
-
-       return 0;
+       return PTR_ERR_OR_ZERO(rtc);
 }
 
 static struct platform_driver rs5c313_rtc_platform_driver = {