[PATCH 1/6] mtd: s3c2410: Use module_platform_driver()
Sachin Kamat
sachin.kamat at linaro.org
Fri Aug 3 00:47:42 EDT 2012
Hi,
Any comments on this series?
On 16 July 2012 16:02, Sachin Kamat <sachin.kamat at linaro.org> wrote:
> This makes the code simpler by eliminating module_init() and
> module_exit().
>
> Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
> ---
> drivers/mtd/nand/s3c2410.c | 15 +--------------
> 1 files changed, 1 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
> index 91121f3..8f9267f 100644
> --- a/drivers/mtd/nand/s3c2410.c
> +++ b/drivers/mtd/nand/s3c2410.c
> @@ -1134,20 +1134,7 @@ static struct platform_driver s3c24xx_nand_driver = {
> },
> };
>
> -static int __init s3c2410_nand_init(void)
> -{
> - printk("S3C24XX NAND Driver, (c) 2004 Simtec Electronics\n");
> -
> - return platform_driver_register(&s3c24xx_nand_driver);
> -}
> -
> -static void __exit s3c2410_nand_exit(void)
> -{
> - platform_driver_unregister(&s3c24xx_nand_driver);
> -}
> -
> -module_init(s3c2410_nand_init);
> -module_exit(s3c2410_nand_exit);
> +module_platform_driver(s3c24xx_nand_driver);
>
> MODULE_LICENSE("GPL");
> MODULE_AUTHOR("Ben Dooks <ben at simtec.co.uk>");
> --
> 1.7.4.1
>
--
With warm regards,
Sachin
More information about the linux-mtd
mailing list