diff options
Diffstat (limited to 'sound/soc/mxs')
-rw-r--r-- | sound/soc/mxs/mxs-saif.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index 365d9d27a321..b327709eb192 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c | |||
@@ -724,11 +724,9 @@ static int mxs_saif_probe(struct platform_device *pdev) | |||
724 | 724 | ||
725 | iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 725 | iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
726 | 726 | ||
727 | saif->base = devm_request_and_ioremap(&pdev->dev, iores); | 727 | saif->base = devm_ioremap_resource(&pdev->dev, iores); |
728 | if (!saif->base) { | 728 | if (IS_ERR(saif->base)) |
729 | dev_err(&pdev->dev, "ioremap failed\n"); | 729 | return PTR_ERR(saif->base); |
730 | return -ENODEV; | ||
731 | } | ||
732 | 730 | ||
733 | dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); | 731 | dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); |
734 | if (!dmares) { | 732 | if (!dmares) { |