dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_ioremap()
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Sep 2013 01:25:13 +0000 (10:25 +0900)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 12:05:34 +0000 (17:35 +0530)
Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/k3dma.c

index ef7bc85d0b6dea36a9b45f8dc37a81b7ac3d3248..a2c330f5f9521302ed04998dfb38eecb60b2f894 100644 (file)
@@ -673,9 +673,9 @@ static int k3_dma_probe(struct platform_device *op)
        if (!d)
                return -ENOMEM;
 
-       d->base = devm_request_and_ioremap(&op->dev, iores);
-       if (!d->base)
-               return -EADDRNOTAVAIL;
+       d->base = devm_ioremap_resource(&op->dev, iores);
+       if (IS_ERR(d->base))
+               return PTR_ERR(d->base);
 
        of_id = of_match_device(k3_pdma_dt_ids, &op->dev);
        if (of_id) {