summaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_pdrv.c
diff options
context:
space:
mode:
authorAxel Lin2011-11-26 08:18:55 +0100
committerGreg Kroah-Hartman2011-11-27 05:12:48 +0100
commit11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7 (patch)
tree613079a724a4a97db233c4e6f75ac2a0e37db73d /drivers/uio/uio_pdrv.c
parenttopology: Provide CPU topology in sysfs in !SMP configurations (diff)
downloadkernel-qcow2-linux-11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7.tar.gz
kernel-qcow2-linux-11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7.tar.xz
kernel-qcow2-linux-11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7.zip
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_pdrv.c')
-rw-r--r--drivers/uio/uio_pdrv.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c
index ff5059517351..72d3646c7365 100644
--- a/drivers/uio/uio_pdrv.c
+++ b/drivers/uio/uio_pdrv.c
@@ -104,17 +104,7 @@ static struct platform_driver uio_pdrv = {
},
};
-static int __init uio_pdrv_init(void)
-{
- return platform_driver_register(&uio_pdrv);
-}
-
-static void __exit uio_pdrv_exit(void)
-{
- platform_driver_unregister(&uio_pdrv);
-}
-module_init(uio_pdrv_init);
-module_exit(uio_pdrv_exit);
+module_platform_driver(uio_pdrv);
MODULE_AUTHOR("Uwe Kleine-Koenig");
MODULE_DESCRIPTION("Userspace I/O platform driver");