diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-17 12:08:40 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-30 01:48:50 +0200 |
commit | 293d3f6a70704691c3539bc3630ba1acbabc5c43 (patch) | |
tree | a4f205775e226dbe9808345979ce672a15805ce0 /drivers/gpu | |
parent | MAINTAINERS: update maintainer entry for Exynos DP driver (diff) | |
download | linux-293d3f6a70704691c3539bc3630ba1acbabc5c43.tar.xz linux-293d3f6a70704691c3539bc3630ba1acbabc5c43.zip |
drm/exynos: dsi: use IS_ERR() to check devm_ioremap_resource() results
devm_ioremap_resource() returns an error pointer, not NULL. Thus,
the result should be checked with IS_ERR().
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index eb73e3bf2a0c..4ac438187568 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1426,9 +1426,9 @@ static int exynos_dsi_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); dsi->reg_base = devm_ioremap_resource(&pdev->dev, res); - if (!dsi->reg_base) { + if (IS_ERR(dsi->reg_base)) { dev_err(&pdev->dev, "failed to remap io region\n"); - return -EADDRNOTAVAIL; + return PTR_ERR(dsi->reg_base); } dsi->phy = devm_phy_get(&pdev->dev, "dsim"); |