aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/au1x/psc-ac97.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c
index 8f1862aa7333..f5a392169338 100644
--- a/sound/soc/au1x/psc-ac97.c
+++ b/sound/soc/au1x/psc-ac97.c
@@ -383,15 +383,9 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
383 if (!iores) 383 if (!iores)
384 return -ENODEV; 384 return -ENODEV;
385 385
386 if (!devm_request_mem_region(&pdev->dev, iores->start, 386 wd->mmio = devm_ioremap_resource(&pdev->dev, iores);
387 resource_size(iores), 387 if (IS_ERR(wd->mmio))
388 pdev->name)) 388 return PTR_ERR(wd->mmio);
389 return -EBUSY;
390
391 wd->mmio = devm_ioremap(&pdev->dev, iores->start,
392 resource_size(iores));
393 if (!wd->mmio)
394 return -EBUSY;
395 389
396 dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); 390 dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
397 if (!dmares) 391 if (!dmares)