]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/dma/sprd-dma.c
Merge branch 'fixes' into next
[mirror_ubuntu-jammy-kernel.git] / drivers / dma / sprd-dma.c
index 8546ad03472083d76156995158e860e106be028b..32402c2615ded458731439f182f50f143541ea52 100644 (file)
@@ -1080,7 +1080,6 @@ static int sprd_dma_probe(struct platform_device *pdev)
        struct device_node *np = pdev->dev.of_node;
        struct sprd_dma_dev *sdev;
        struct sprd_dma_chn *dma_chn;
-       struct resource *res;
        u32 chn_count;
        int ret, i;
 
@@ -1126,8 +1125,7 @@ static int sprd_dma_probe(struct platform_device *pdev)
                dev_warn(&pdev->dev, "no interrupts for the dma controller\n");
        }
 
-       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       sdev->glb_base = devm_ioremap_resource(&pdev->dev, res);
+       sdev->glb_base = devm_platform_ioremap_resource(pdev, 0);
        if (IS_ERR(sdev->glb_base))
                return PTR_ERR(sdev->glb_base);