dma: imx-sdma: use module_platform_driver for SDMA driver
authorVignesh Raman <Vignesh_Raman@mentor.com>
Tue, 5 Aug 2014 13:09:41 +0000 (18:39 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 19 Aug 2014 15:22:04 +0000 (20:52 +0530)
commit23e11811378259831777e8fdc8b9836faeaa72cd
treece63996c49211c5a15a4bf277bfd0c41e6c67d52
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
dma: imx-sdma: use module_platform_driver for SDMA driver

Currently there is no module_exit declared in SDMA driver, so that once
sdma module is inserted, it's shown with permanent attribute by lsmod,
and it can't be removed.
Use module_platform_driver to register/unregister SDMA driver and modify
SDMA's remove operation, to make SDMA driver possible to be removed.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c