OSDN Git Service

ARM: EXYNOS: Add apb_pclk clkdev entry for mdma1
authorTushar Behera <tushar.behera@linaro.org>
Tue, 27 Dec 2011 05:42:50 +0000 (14:42 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sun, 11 Mar 2012 06:51:12 +0000 (22:51 -0800)
commit8f7b13218b01e287895c9906bca94f67f8bc25b9
tree06b22b9d4a020d9654338deea46da5677a5ed1eb
parent9ed76e0336988ecc9e7234e0bd49be4fd98f6c35
ARM: EXYNOS: Add apb_pclk clkdev entry for mdma1

Amba core assumes the pclk to be named as apb_pclk. During device probe,
it tries to get that clock and enable that. When PM_RUNTIME is enabled,
dma clock is not explicitly enabled in pl330_probe, which causes device
probe to fail. Adding a clkdev entry for apb_pclk for mdma1 fixes the
problem.

This patch fixes following runtime error.

dma-pl330 dma-pl330.2: PERIPH_ID 0x0, PCELL_ID 0x0 !
dma-pl330: probe of dma-pl330.2 failed with error -22

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/clock-exynos4.c