Commit 163a512c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Alexandre Belloni
Browse files

rtc: rtc-rs5c313: Convert to module_platform_driver()



Reduce boilerplate by using the module_platform_driver() helper.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200814110731.29029-4-geert+renesas@glider.be
parent f65e7274
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -384,18 +384,7 @@ static struct platform_driver rs5c313_rtc_platform_driver = {
	.probe	= rs5c313_rtc_probe,
};

static int __init rs5c313_rtc_init(void)
{
	return platform_driver_register(&rs5c313_rtc_platform_driver);
}

static void __exit rs5c313_rtc_exit(void)
{
	platform_driver_unregister(&rs5c313_rtc_platform_driver);
}

module_init(rs5c313_rtc_init);
module_exit(rs5c313_rtc_exit);
module_platform_driver(rs5c313_rtc_platform_driver);

MODULE_AUTHOR("kogiidena , Nobuhiro Iwamatsu <iwamatsu@nigauri.org>");
MODULE_DESCRIPTION("Ricoh RS5C313 RTC device driver");