mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
rtc: rtc-tegra: use module_platform_driver_probe()
Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
61ce8256cb
commit
0e2c481d4b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user