Skip to contentSkip to conversation

rtc-rtc-ds1216-use-module_platform_driver_probe.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] rtc-rtc-ds1216-use-module_platform_driver_probe.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:35:23 -0700

The patch titled
Subject: drivers/rtc/rtc-ds1216.c: use module_platform_driver_probe()
has been removed from the -mm tree. Its filename was
rtc-rtc-ds1216-use-module_platform_driver_probe.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Fabio Porcedda <[email protected]>
Subject: drivers/rtc/rtc-ds1216.c: use module_platform_driver_probe()

Use module_platform_driver_probe() macro which makes the code smaller and simpler.

---

 drivers/rtc/rtc-ds1216.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
drivers/rtc/rtc-ds1216.c renamed from drivers/rtc/rtc-ds1216.c~rtc-rtc-ds1216-use-module_platform_driver_probe +1 -9
diff -puN drivers/rtc/rtc-ds1216.c~rtc-rtc-ds1216-use-module_platform_driver_probe drivers/rtc/rtc-ds1216.c
@@ -174,21 +174,10 @@ static struct platform_driver ds1216_rtc
 	},
 };
 
-static int __init ds1216_rtc_init(void)
-{
-	return platform_driver_probe(&ds1216_rtc_platform_driver, ds1216_rtc_probe);
-}
-
-static void __exit ds1216_rtc_exit(void)
-{
-	platform_driver_unregister(&ds1216_rtc_platform_driver);
-}
+module_platform_driver_probe(ds1216_rtc_platform_driver, ds1216_rtc_probe);
 
 MODULE_AUTHOR("Thomas Bogendoerfer <[email protected]>");
 MODULE_DESCRIPTION("DS1216 RTC driver");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(DRV_VERSION);
 MODULE_ALIAS("platform:rtc-ds1216");