]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
spi: omap2-mcspi: convert to module_platform_driver
authorFelipe Balbi <balbi@ti.com>
Wed, 14 Mar 2012 09:18:31 +0000 (11:18 +0200)
committerShubhrajyoti D <shubhrajyoti@ti.com>
Mon, 19 Mar 2012 12:37:40 +0000 (18:07 +0530)
this will delete a few lines of code, no functional
changes.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
drivers/spi/spi-omap2-mcspi.c

index 5f4419e8786f3fce31bf415ae72b4427e0fb1cbb..7745f91f105dc0c73b557ebaa24d29723edb38e8 100644 (file)
@@ -1291,18 +1291,5 @@ static struct platform_driver omap2_mcspi_driver = {
        .remove =       __devexit_p(omap2_mcspi_remove),
 };
 
-
-static int __init omap2_mcspi_init(void)
-{
-       return platform_driver_register(&omap2_mcspi_driver);
-}
-subsys_initcall(omap2_mcspi_init);
-
-static void __exit omap2_mcspi_exit(void)
-{
-       platform_driver_unregister(&omap2_mcspi_driver);
-
-}
-module_exit(omap2_mcspi_exit);
-
+module_platform_driver(omap2_mcspi_driver);
 MODULE_LICENSE("GPL");