summaryrefslogtreecommitdiffstats
path: root/drivers/dma/timb_dma.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-26 15:11:12 +0800
committerVinod Koul <vinod.koul@linux.intel.com>2011-12-05 08:25:54 +0530
commitc94e910535be72f0c6ac0c69e6acd8d44414e80d (patch)
tree31cf8423282b9c20ee13a8a701f636d3697ed5e4 /drivers/dma/timb_dma.c
parentab59a510c6ad6b3add5125df64843be754782de6 (diff)
downloadlinux-c94e910535be72f0c6ac0c69e6acd8d44414e80d.tar.gz
linux-c94e910535be72f0c6ac0c69e6acd8d44414e80d.tar.bz2
linux-c94e910535be72f0c6ac0c69e6acd8d44414e80d.zip
dmaengine: convert drivers/dma/* to use module_platform_driver()
This patch converts the drivers in drivers/dma/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Dan Williams <dan.j.williams@intel.com> Cc: Piotr Ziecik <kosmo@semihalf.com> Cc: Rongjun Ying <rongjun.ying@csr.com> Cc: Barry Song <21cnbao@gmail.com> Cc: Pelagicore AB <info@pelagicore.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/timb_dma.c')
-rw-r--r--drivers/dma/timb_dma.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c
index d142ae1fce52..a6f9c1684a0f 100644
--- a/drivers/dma/timb_dma.c
+++ b/drivers/dma/timb_dma.c
@@ -841,17 +841,7 @@ static struct platform_driver td_driver = {
.remove = __exit_p(td_remove),
};
-static int __init td_init(void)
-{
- return platform_driver_register(&td_driver);
-}
-module_init(td_init);
-
-static void __exit td_exit(void)
-{
- platform_driver_unregister(&td_driver);
-}
-module_exit(td_exit);
+module_platform_driver(td_driver);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Timberdale DMA controller driver");