Skip to content

Commit a576b7f

Browse files
Jingoo HanVinod Koul
authored andcommitted
dma: k3dma: use devm_ioremap_resource() instead of devm_request_and_ioremap()
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han <[email protected]> Acked-by: Zhangfei Gao <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent e9fd58d commit a576b7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/dma/k3dma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ static int k3_dma_probe(struct platform_device *op)
673673
if (!d)
674674
return -ENOMEM;
675675

676-
d->base = devm_request_and_ioremap(&op->dev, iores);
677-
if (!d->base)
678-
return -EADDRNOTAVAIL;
676+
d->base = devm_ioremap_resource(&op->dev, iores);
677+
if (IS_ERR(d->base))
678+
return PTR_ERR(d->base);
679679

680680
of_id = of_match_device(k3_pdma_dt_ids, &op->dev);
681681
if (of_id) {

0 commit comments

Comments
 (0)