The patch titled Subject: rtc: rtc-mxc: convert to module_platform_driver has been added to the -mm tree. Its filename is rtc-rtc-mxc-convert-to-module_platform_driver.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Subject: rtc: rtc-mxc: convert to module_platform_driver Converting to module_platform_driver can make the code smaller and cleaner. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-mxc.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff -puN drivers/rtc/rtc-mxc.c~rtc-rtc-mxc-convert-to-module_platform_driver drivers/rtc/rtc-mxc.c --- a/drivers/rtc/rtc-mxc.c~rtc-rtc-mxc-convert-to-module_platform_driver +++ a/drivers/rtc/rtc-mxc.c @@ -343,7 +343,7 @@ static struct rtc_class_ops mxc_rtc_ops .alarm_irq_enable = mxc_rtc_alarm_irq_enable, }; -static int __init mxc_rtc_probe(struct platform_device *pdev) +static int __devinit mxc_rtc_probe(struct platform_device *pdev) { struct resource *res; struct rtc_device *rtc; @@ -433,7 +433,7 @@ exit_free_pdata: return ret; } -static int __exit mxc_rtc_remove(struct platform_device *pdev) +static int __devexit mxc_rtc_remove(struct platform_device *pdev) { struct rtc_plat_data *pdata = platform_get_drvdata(pdev); @@ -480,21 +480,11 @@ static struct platform_driver mxc_rtc_dr #endif .owner = THIS_MODULE, }, - .remove = __exit_p(mxc_rtc_remove), + .probe = mxc_rtc_probe, + .remove = __devexit_p(mxc_rtc_remove), }; -static int __init mxc_rtc_init(void) -{ - return platform_driver_probe(&mxc_rtc_driver, mxc_rtc_probe); -} - -static void __exit mxc_rtc_exit(void) -{ - platform_driver_unregister(&mxc_rtc_driver); -} - -module_init(mxc_rtc_init); -module_exit(mxc_rtc_exit); +module_platform_driver(mxc_rtc_driver) MODULE_AUTHOR("Daniel Mack <daniel@xxxxxxxx>"); MODULE_DESCRIPTION("RTC driver for Freescale MXC"); _ Patches currently in -mm which might be from fabio.estevam@xxxxxxxxxxxxx are linux-next.patch dma-dmaengine-lower-the-priority-of-failed-to-get-dma-channel-message.patch rtc-rtc-mxc-adapt-to-the-new-imx-clock-framework.patch rtc-rtc-mxc-convert-to-module_platform_driver.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html