aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lantiq/xway/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lantiq/xway/dma.c')
-rw-r--r--arch/mips/lantiq/xway/dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
index e44a1866653f..08f7ebd9c774 100644
--- a/arch/mips/lantiq/xway/dma.c
+++ b/arch/mips/lantiq/xway/dma.c
@@ -21,6 +21,7 @@
21#include <linux/dma-mapping.h> 21#include <linux/dma-mapping.h>
22#include <linux/module.h> 22#include <linux/module.h>
23#include <linux/clk.h> 23#include <linux/clk.h>
24#include <linux/err.h>
24 25
25#include <lantiq_soc.h> 26#include <lantiq_soc.h>
26#include <xway_dma.h> 27#include <xway_dma.h>
@@ -223,8 +224,8 @@ ltq_dma_init(struct platform_device *pdev)
223 panic("Failed to get dma resource"); 224 panic("Failed to get dma resource");
224 225
225 /* remap dma register range */ 226 /* remap dma register range */
226 ltq_dma_membase = devm_request_and_ioremap(&pdev->dev, res); 227 ltq_dma_membase = devm_ioremap_resource(&pdev->dev, res);
227 if (!ltq_dma_membase) 228 if (IS_ERR(ltq_dma_membase))
228 panic("Failed to remap dma resource"); 229 panic("Failed to remap dma resource");
229 230
230 /* power up and reset the dma engine */ 231 /* power up and reset the dma engine */