diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2011-03-03 11:17:15 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-03-06 20:42:27 +0100 |
commit | cb689a706d17ef19a61735670ded60466dd015fa (patch) | |
tree | 34172bc4222c9d4a5970a7509f5adde79e500d46 /drivers/dma/dw_dmac.c | |
parent | dw_dmac: Remove compilation dependency from AVR32 and put on HAVE_CLK (diff) | |
download | linux-cb689a706d17ef19a61735670ded60466dd015fa.tar.xz linux-cb689a706d17ef19a61735670ded60466dd015fa.zip |
dw_dmac: Replace module_init() with subsys_initcall()
In some cases users of dw_dmac are initialized before dw_dmac, and if they try
to use dw_dmac, they simply fail. So its better we register init() routine
of driver using subsys_initcall() instead of module_init(), so that dma driver
is available at the earliest possible.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac.c')
-rw-r--r-- | drivers/dma/dw_dmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 08dab3badad2..064a1830a76b 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -1455,7 +1455,7 @@ static int __init dw_init(void) { return platform_driver_probe(&dw_driver, dw_probe); } -module_init(dw_init); +subsys_initcall(dw_init); static void __exit dw_exit(void) { |