diff options
Diffstat (limited to 'drivers/media/platform/mx2_emmaprp.c')
-rw-r--r-- | drivers/media/platform/mx2_emmaprp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c index 6b155d7be8e0..4b9e0a28616a 100644 --- a/drivers/media/platform/mx2_emmaprp.c +++ b/drivers/media/platform/mx2_emmaprp.c | |||
@@ -941,9 +941,9 @@ static int emmaprp_probe(struct platform_device *pdev) | |||
941 | 941 | ||
942 | platform_set_drvdata(pdev, pcdev); | 942 | platform_set_drvdata(pdev, pcdev); |
943 | 943 | ||
944 | pcdev->base_emma = devm_request_and_ioremap(&pdev->dev, res_emma); | 944 | pcdev->base_emma = devm_ioremap_resource(&pdev->dev, res_emma); |
945 | if (!pcdev->base_emma) { | 945 | if (IS_ERR(pcdev->base_emma)) { |
946 | ret = -ENXIO; | 946 | ret = PTR_ERR(pcdev->base_emma); |
947 | goto rel_vdev; | 947 | goto rel_vdev; |
948 | } | 948 | } |
949 | 949 | ||