diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2013-01-21 05:09:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-22 14:41:58 -0500 |
commit | b25b5aa06667b01fee8fe2648d4ea9db32c87d1a (patch) | |
tree | 9d6ec95d418fce9bc5923d6c7f3e2ab8bf8ada72 /sound/soc/kirkwood | |
parent | 4d6dc3a73543336be8d81ba748772c09730cf557 (diff) |
ASoC: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
devm_ioremap_resource() provides its own error messages so all explicit
error messages can be removed from the failure code paths.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/kirkwood')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-i2s.c | 8 |
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) { |