]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9e16073a3f8ab9a82203aeb9268458bc6937f68
treece63996c49211c5a15a4bf277bfd0c41e6c67d52
parentca09702717581356bb91e5bbfbb244eda384a004
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