aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-03-14 05:18:31 -0400
committerShubhrajyoti D <shubhrajyoti@ti.com>2012-03-19 08:37:40 -0400
commit9fdca9dfe093c76fe1ac1a09888ba9679d46996a (patch)
treed7b7f073525a218064b95cb9f8d5e322351081f4 /drivers/spi
parent7d6b6d83139d0eab087645edc8c3f6b4b3cef34d (diff)
spi: omap2-mcspi: convert to module_platform_driver
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-omap2-mcspi.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 5f4419e8786f..7745f91f105d 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1291,18 +1291,5 @@ static struct platform_driver omap2_mcspi_driver = {
1291 .remove = __devexit_p(omap2_mcspi_remove), 1291 .remove = __devexit_p(omap2_mcspi_remove),
1292}; 1292};
1293 1293
1294 1294module_platform_driver(omap2_mcspi_driver);
1295static int __init omap2_mcspi_init(void)
1296{
1297 return platform_driver_register(&omap2_mcspi_driver);
1298}
1299subsys_initcall(omap2_mcspi_init);
1300
1301static void __exit omap2_mcspi_exit(void)
1302{
1303 platform_driver_unregister(&omap2_mcspi_driver);
1304
1305}
1306module_exit(omap2_mcspi_exit);
1307
1308MODULE_LICENSE("GPL"); 1295MODULE_LICENSE("GPL");