aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/carma
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-22 02:33:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-24 19:31:48 -0500
commitb00e126ffea89b687a83093546058b07aa054b4c (patch)
treeb9dc95d02de0cb772d40554bbce670e4086e449d /drivers/misc/carma
parentdcd6c92267155e70a94b3927bce681ce74b80d1f (diff)
MISC: convert drivers/misc/* to use module_platform_driver()
This patch converts the drivers in drivers/misc/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Ira W. Snyder <iws@ovro.caltech.edu> Cc: Pavan Savoy <pavan_savoy@ti.com> Cc: Donggeun Kim <dg77.kim@samsung.com> Acked-By: Pratyush Anand <pratyush.anand@st.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/carma')
-rw-r--r--drivers/misc/carma/carma-fpga.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/misc/carma/carma-fpga.c b/drivers/misc/carma/carma-fpga.c
index 14e974b2a78..366bc156e34 100644
--- a/drivers/misc/carma/carma-fpga.c
+++ b/drivers/misc/carma/carma-fpga.c
@@ -1410,23 +1410,8 @@ static struct platform_driver data_of_driver = {
1410 }, 1410 },
1411}; 1411};
1412 1412
1413/* 1413module_platform_driver(data_of_driver);
1414 * Module Init / Exit
1415 */
1416
1417static int __init data_init(void)
1418{
1419 return platform_driver_register(&data_of_driver);
1420}
1421
1422static void __exit data_exit(void)
1423{
1424 platform_driver_unregister(&data_of_driver);
1425}
1426 1414
1427MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 1415MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>");
1428MODULE_DESCRIPTION("CARMA DATA-FPGA Access Driver"); 1416MODULE_DESCRIPTION("CARMA DATA-FPGA Access Driver");
1429MODULE_LICENSE("GPL"); 1417MODULE_LICENSE("GPL");
1430
1431module_init(data_init);
1432module_exit(data_exit);