rtc: rtc-rs5c313: Drop obsolete platform_set_drvdata() call

Commit 284e2fa1da ("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
This commit is contained in:
Geert Uytterhoeven 2020-08-14 13:07:29 +02:00 committed by Alexandre Belloni
parent c254bcd723
commit fc9656a370

View 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 = {