Subject: + drivers-pps-clients-pps-gpioc-convert-to-module_platform_driver.patch added to -mm tree To: jlu@xxxxxxxxxxxxxx,giometti@xxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 20 May 2013 16:22:55 -0700 The patch titled Subject: drivers/pps/clients/pps-gpio.c: convert to module_platform_driver has been added to the -mm tree. Its filename is drivers-pps-clients-pps-gpioc-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: Jan Luebbe <jlu@xxxxxxxxxxxxxx> Subject: drivers/pps/clients/pps-gpio.c: convert to module_platform_driver This removes some boilerplate code (no functional changes). Signed-off-by: Jan Luebbe <jlu@xxxxxxxxxxxxxx> Acked-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/pps/clients/pps-gpio.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff -puN drivers/pps/clients/pps-gpio.c~drivers-pps-clients-pps-gpioc-convert-to-module_platform_driver drivers/pps/clients/pps-gpio.c --- a/drivers/pps/clients/pps-gpio.c~drivers-pps-clients-pps-gpioc-convert-to-module_platform_driver +++ a/drivers/pps/clients/pps-gpio.c @@ -187,23 +187,7 @@ static struct platform_driver pps_gpio_d }, }; -static int __init pps_gpio_init(void) -{ - int ret = platform_driver_register(&pps_gpio_driver); - if (ret < 0) - pr_err("failed to register platform driver\n"); - return ret; -} - -static void __exit pps_gpio_exit(void) -{ - platform_driver_unregister(&pps_gpio_driver); - pr_debug("unregistered platform driver\n"); -} - -module_init(pps_gpio_init); -module_exit(pps_gpio_exit); - +module_platform_driver(pps_gpio_driver); MODULE_AUTHOR("Ricardo Martins <rasm@xxxxxxxx>"); MODULE_AUTHOR("James Nuss <jamesnuss@xxxxxxxxxxxxxx>"); MODULE_DESCRIPTION("Use GPIO pin as PPS source"); _ Patches currently in -mm which might be from jlu@xxxxxxxxxxxxxx are drivers-pps-clients-pps-gpioc-convert-to-devm_-helpers.patch drivers-pps-clients-pps-gpioc-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