Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: S3C64XX: Use clk_prepare_enable/clk_disable_unprepare in dma.c

This patch modifies s3c64xx DMA driver to prepare and unprepare clocks
in addition to enableind and disabling, since it is required by common
clock framework.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Tested-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

authored by

Tomasz Figa and committed by
Kukjin Kim
8d6c742a 57a23126

+2 -2
+2 -2
arch/arm/mach-s3c64xx/dma.c
··· 677 677 goto err_map; 678 678 } 679 679 680 - clk_enable(dmac->clk); 680 + clk_prepare_enable(dmac->clk); 681 681 682 682 dmac->regs = regs; 683 683 dmac->chanbase = chbase; ··· 711 711 return 0; 712 712 713 713 err_clk: 714 - clk_disable(dmac->clk); 714 + clk_disable_unprepare(dmac->clk); 715 715 clk_put(dmac->clk); 716 716 err_map: 717 717 iounmap(regs);