X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fdma%2Fmmp_tdma.c;h=43d5a6c3329772e6680a908b2bfea2994c4fa9b0;hb=0512c04a2b5d29a33d96d315e1d14c55f5148aa7;hp=a9f1cd56689c06a1995aaca6ee53717ecc28a5e0;hpb=0d69a3c731e120b05b7da9fb976830475a3fbc01;p=~andy%2Flinux diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index a9f1cd56689..43d5a6c3329 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -9,6 +9,7 @@ * */ +#include #include #include #include @@ -547,9 +548,9 @@ static int mmp_tdma_probe(struct platform_device *pdev) if (!iores) return -EINVAL; - tdev->base = devm_request_and_ioremap(&pdev->dev, iores); - if (!tdev->base) - return -EADDRNOTAVAIL; + tdev->base = devm_ioremap_resource(&pdev->dev, iores); + if (IS_ERR(tdev->base)) + return PTR_ERR(tdev->base); INIT_LIST_HEAD(&tdev->device.channels);