lkml.org 
[lkml]   [2012]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 3/5] spi: omap2-mcspi: convert to module_platform_driver
    Date
    From: Felipe Balbi <balbi@ti.com>

    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 | 15 +--------------
    1 files changed, 1 insertions(+), 14 deletions(-)

    diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
    index 26dd79f..66cbf22 100644
    --- a/drivers/spi/spi-omap2-mcspi.c
    +++ b/drivers/spi/spi-omap2-mcspi.c
    @@ -1324,18 +1324,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");
    --
    1.7.1


    \
     
     \ /
      Last update: 2012-03-26 15:49    [W:0.023 / U:1.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site