diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 02:11:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-12-04 21:55:54 -0500 |
commit | c94e910535be72f0c6ac0c69e6acd8d44414e80d (patch) | |
tree | 31cf8423282b9c20ee13a8a701f636d3697ed5e4 /drivers/dma/sirf-dma.c | |
parent | ab59a510c6ad6b3add5125df64843be754782de6 (diff) |
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/sirf-dma.c')
-rw-r--r-- | drivers/dma/sirf-dma.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index 55ec67997670..2333810d1688 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -699,17 +699,7 @@ static struct platform_driver sirfsoc_dma_driver = { | |||
699 | }, | 699 | }, |
700 | }; | 700 | }; |
701 | 701 | ||
702 | static int __init sirfsoc_dma_init(void) | 702 | module_platform_driver(sirfsoc_dma_driver); |
703 | { | ||
704 | return platform_driver_register(&sirfsoc_dma_driver); | ||
705 | } | ||
706 | module_init(sirfsoc_dma_init); | ||
707 | |||
708 | static void __exit sirfsoc_dma_exit(void) | ||
709 | { | ||
710 | platform_driver_unregister(&sirfsoc_dma_driver); | ||
711 | } | ||
712 | module_exit(sirfsoc_dma_exit); | ||
713 | 703 | ||
714 | MODULE_AUTHOR("Rongjun Ying <rongjun.ying@csr.com>, " | 704 | MODULE_AUTHOR("Rongjun Ying <rongjun.ying@csr.com>, " |
715 | "Barry Song <baohua.song@csr.com>"); | 705 | "Barry Song <baohua.song@csr.com>"); |