]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sirf: move driver init from module_init to subsys_initcall
authorBarry Song <Baohua.Song@csr.com>
Thu, 11 Apr 2013 06:09:28 +0000 (14:09 +0800)
committerVinod Koul <vinod.koul@intel.com>
Thu, 2 May 2013 15:18:23 +0000 (20:48 +0530)
commitd2d61e970c97ee877151b571d7c6d0880eb8636e
tree0c91754c3e6f83ff7477ca5ae7476f99b79f272c
parent91f5d2ef1e8f97ab96eed6869c8ed6c9d0d3590b
dmaengine: sirf: move driver init from module_init to subsys_initcall

if we initilize dma driver by module_init, there are still many devices
which will be initilized earlier than dma. these devices will fail to
get dma channel.
this moves dmaengine earlier than device_initcall and make dma available
for all devices.

Reported-by: Renwei Wu <Renwei.Wu@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c