diff options
Diffstat (limited to 'sound/soc/mxs/mxs-saif.c')
-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 e70e6c844f96..3a2aa1d19b93 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c | |||
@@ -717,11 +717,9 @@ static int mxs_saif_probe(struct platform_device *pdev) | |||
717 | 717 | ||
718 | iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 718 | iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
719 | 719 | ||
720 | saif->base = devm_request_and_ioremap(&pdev->dev, iores); | 720 | saif->base = devm_ioremap_resource(&pdev->dev, iores); |
721 | if (!saif->base) { | 721 | if (IS_ERR(saif->base)) |
722 | dev_err(&pdev->dev, "ioremap failed\n"); | 722 | return PTR_ERR(saif->base); |
723 | return -ENODEV; | ||
724 | } | ||
725 | 723 | ||
726 | dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); | 724 | dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0); |
727 | if (!dmares) { | 725 | if (!dmares) { |