Skip to content

Commit

Permalink
ASoC: psc-ac97: Use devm_ioremap_resource()
Browse files Browse the repository at this point in the history
Acked-by: Manuel Lauss <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Jun 27, 2013
1 parent 25fd0bf commit a16a6c6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions sound/soc/au1x/psc-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a16a6c6

Please sign in to comment.