Update from old pmu_{dis,en}able() to ckldev api. Signed-off-by: John Crispin <blogic@xxxxxxxxxxx> --- arch/mips/lantiq/xway/dma.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c index 6cf883b..ed04da9 100644 --- a/arch/mips/lantiq/xway/dma.c +++ b/arch/mips/lantiq/xway/dma.c @@ -20,6 +20,7 @@ #include <linux/io.h> #include <linux/dma-mapping.h> #include <linux/export.h> +#include <linux/clk.h> #include <lantiq_soc.h> #include <xway_dma.h> @@ -216,6 +217,7 @@ EXPORT_SYMBOL_GPL(ltq_dma_init_port); int __init ltq_dma_init(void) { + struct clk *clk; int i; /* remap dma register range */ @@ -224,7 +226,8 @@ ltq_dma_init(void) panic("Failed to remap dma memory"); /* power up and reset the dma engine */ - ltq_pmu_enable(PMU_DMA); + clk = clk_get_sys("fpi", "dma"); + clk_enable(clk); ltq_dma_w32_mask(0, DMA_RESET, LTQ_DMA_CTRL); /* disable all interrupts */ -- 1.7.7.1