[lkml]   [2011]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] dw_dmac: Replace subsys_init() with arch_initcall()
In some cases users of dw_dmac, amba-pl022, 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 arch_initcall() instead of subsys_init(), so that dma
driver is available at the earliest possible.

Signed-off-by: Viresh Kumar <>
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 54d72a8..4b580e7 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -1566,7 +1566,7 @@ static int __init dw_init(void)
return platform_driver_probe(&dw_driver, dw_probe);

static void __exit dw_exit(void)

 \ /
  Last update: 2011-05-16 06:59    [W:0.042 / U:31.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site