diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-02-20 13:54:43 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-03-18 20:41:18 +0900 |
commit | aed45ab4b07472920ed22ad43b8ffa123c590d57 (patch) | |
tree | f1d571c0b486a06225619edebfda0f842456988f /drivers/gpu/drm/exynos | |
parent | 5fcc3c88f9a7944b655856e78341289705cf4cde (diff) | |
download | linux-aed45ab4b07472920ed22ad43b8ffa123c590d57.tar.bz2 |
drm/exynos: IS_ERR() vs NULL bug
of_iomap() doesn't return error pointers, it returns NULL on error.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos7_drm_decon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c index 63f02e2380ae..970046199608 100644 --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c @@ -888,8 +888,8 @@ static int decon_probe(struct platform_device *pdev) of_node_put(i80_if_timings); ctx->regs = of_iomap(dev->of_node, 0); - if (IS_ERR(ctx->regs)) { - ret = PTR_ERR(ctx->regs); + if (!ctx->regs) { + ret = -ENOMEM; goto err_del_component; } |