summaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_pruss.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-26 15:18:55 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 20:12:48 -0800
commit11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7 (patch)
tree613079a724a4a97db233c4e6f75ac2a0e37db73d /drivers/uio/uio_pruss.c
parentccbc60d3e19a1b6ae66ca0d89b3da02dde62088b (diff)
downloadop-kernel-dev-11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7.zip
op-kernel-dev-11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7.tar.gz
uio: convert drivers/uio/* to use module_platform_driver()
This patch converts the drivers in drivers/uio/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Cc: Magnus Damm <damm@igel.co.jp> Cc: Amit Chatterjee <amit.chatterjee@ti.com> Cc: Pratheesh Gangadhar <pratheesh@ti.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/uio/uio_pruss.c')
-rw-r--r--drivers/uio/uio_pruss.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c
index e67b566..33a7a27 100644
--- a/drivers/uio/uio_pruss.c
+++ b/drivers/uio/uio_pruss.c
@@ -227,19 +227,7 @@ static struct platform_driver pruss_driver = {
},
};
-static int __init pruss_init_module(void)
-{
- return platform_driver_register(&pruss_driver);
-}
-
-module_init(pruss_init_module);
-
-static void __exit pruss_exit_module(void)
-{
- platform_driver_unregister(&pruss_driver);
-}
-
-module_exit(pruss_exit_module);
+module_platform_driver(pruss_driver);
MODULE_LICENSE("GPL v2");
MODULE_VERSION(DRV_VERSION);
OpenPOWER on IntegriCloud