提交 0e2c481d 编写于 作者: J Jingoo Han 提交者: Linus Torvalds

rtc: rtc-tegra: use module_platform_driver_probe()

Use module_platform_driver_probe() macro which makes the code smaller and
simpler.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 61ce8256
......@@ -452,17 +452,7 @@ static struct platform_driver tegra_rtc_driver = {
#endif
};
static int __init tegra_rtc_init(void)
{
return platform_driver_probe(&tegra_rtc_driver, tegra_rtc_probe);
}
module_init(tegra_rtc_init);
static void __exit tegra_rtc_exit(void)
{
platform_driver_unregister(&tegra_rtc_driver);
}
module_exit(tegra_rtc_exit);
module_platform_driver_probe(tegra_rtc_driver, tegra_rtc_probe);
MODULE_AUTHOR("Jon Mayo <jmayo@nvidia.com>");
MODULE_DESCRIPTION("driver for Tegra internal RTC");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册