Skip to content

Commit

Permalink
dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_i…
Browse files Browse the repository at this point in the history
…oremap()

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>
  • Loading branch information
Jingoo Han authored and Vinod Koul committed Sep 2, 2013
1 parent e9fd58d commit a576b7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/dma/k3dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a576b7f

Please sign in to comment.