diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-06-17 10:43:17 -0700 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2013-06-24 13:06:43 -0700 |
commit | 2dfd9c1f7722bcaa9d2d4af090af2050df85203b (patch) | |
tree | cf27832a02345c3863b3ad2224c288c6cd98ba47 /arch/arm/mach-msm/dma.c | |
parent | 42a9ed5dbed44ee24c2775ad53904b7908f8ed2b (diff) | |
download | blackbird-op-linux-2dfd9c1f7722bcaa9d2d4af090af2050df85203b.tar.gz blackbird-op-linux-2dfd9c1f7722bcaa9d2d4af090af2050df85203b.zip |
ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver
In the near future we'll be moving clock-pcom to a platform
driver, in which case these two users of clk_get() in mach-msm
need to be updated. Have board-trout-panel.c make the proc_comm
call directly so that we don't have to port this board specific
code to the driver right now and reorder the initcall order of
dma.c so that it initializes after the clock driver probes but
before any drivers use dma APIs.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/dma.c')
-rw-r--r-- | arch/arm/mach-msm/dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/dma.c b/arch/arm/mach-msm/dma.c index b279fd8a31b1..f8f6adfa07c6 100644 --- a/arch/arm/mach-msm/dma.c +++ b/arch/arm/mach-msm/dma.c @@ -284,6 +284,7 @@ static int __init msm_init_datamover(void) clk = clk_get(NULL, "adm_clk"); if (IS_ERR(clk)) return PTR_ERR(clk); + clk_prepare(clk); msm_dmov_clk = clk; ret = request_irq(INT_ADM_AARM, msm_datamover_irq_handler, 0, "msmdatamover", NULL); if (ret) @@ -291,6 +292,4 @@ static int __init msm_init_datamover(void) disable_irq(INT_ADM_AARM); return 0; } - -arch_initcall(msm_init_datamover); - +module_init(msm_init_datamover); |