ASoC: psc-ac97: Use devm_ioremap_resource()
PATCH 1/3 ASoC: psc-ac97: Use devm_ioremap_resource()
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/au1x/psc-ac97.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
sound/soc/au1x/psc-ac97.c +3 -9
@@ -383,15 +383,9 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)if (!iores)return -ENODEV ; -if (!devm_request_mem_region (&pdev->dev, iores->start, -resource_size (iores), - pdev->name)) -return -EBUSY ; - - wd->mmio =devm_ioremap (&pdev->dev, iores->start, -resource_size (iores)); -if (!wd->mmio) -return -EBUSY ; + wd->mmio =devm_ioremap_resource (&pdev->dev, iores); +if (IS_ERR (wd->mmio)) +return PTR_ERR (wd->mmio); dmares =platform_get_resource (pdev,IORESOURCE_DMA ,0 );if (!dmares)
Signature · 1 line
1.8.3.1