aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/kirkwood/kirkwood-i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/kirkwood/kirkwood-i2s.c')
-rw-r--r--sound/soc/kirkwood/kirkwood-i2s.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index 282d8b1163ba..c74c89065493 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -472,11 +472,9 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
472 return -ENXIO; 472 return -ENXIO;
473 } 473 }
474 474
475 priv->io = devm_request_and_ioremap(&pdev->dev, mem); 475 priv->io = devm_ioremap_resource(&pdev->dev, mem);
476 if (!priv->io) { 476 if (IS_ERR(priv->io))
477 dev_err(&pdev->dev, "devm_request_and_ioremap failed\n"); 477 return PTR_ERR(priv->io);
478 return -ENOMEM;
479 }
480 478
481 priv->irq = platform_get_irq(pdev, 0); 479 priv->irq = platform_get_irq(pdev, 0);
482 if (priv->irq <= 0) { 480 if (priv->irq <= 0) {