mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-04-12 04:43:17 +00:00
ASoC: psc-ac97: Use devm_ioremap_resource()
Acked-by: Manuel Lauss <manuel.lauss@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
25fd0bfd53
commit
a16a6c68e8
@ -383,15 +383,9 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
|
|||||||
if (!iores)
|
if (!iores)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
if (!devm_request_mem_region(&pdev->dev, iores->start,
|
wd->mmio = devm_ioremap_resource(&pdev->dev, iores);
|
||||||
resource_size(iores),
|
if (IS_ERR(wd->mmio))
|
||||||
pdev->name))
|
return PTR_ERR(wd->mmio);
|
||||||
return -EBUSY;
|
|
||||||
|
|
||||||
wd->mmio = devm_ioremap(&pdev->dev, iores->start,
|
|
||||||
resource_size(iores));
|
|
||||||
if (!wd->mmio)
|
|
||||||
return -EBUSY;
|
|
||||||
|
|
||||||
dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
|
dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
|
||||||
if (!dmares)
|
if (!dmares)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user