Commit aed45ab4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Inki Dae

drm/exynos: IS_ERR() vs NULL bug

of_iomap() doesn't return error pointers, it returns NULL on error.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 5fcc3c88
...@@ -888,8 +888,8 @@ static int decon_probe(struct platform_device *pdev) ...@@ -888,8 +888,8 @@ static int decon_probe(struct platform_device *pdev)
of_node_put(i80_if_timings); of_node_put(i80_if_timings);
ctx->regs = of_iomap(dev->of_node, 0); ctx->regs = of_iomap(dev->of_node, 0);
if (IS_ERR(ctx->regs)) { if (!ctx->regs) {
ret = PTR_ERR(ctx->regs); ret = -ENOMEM;
goto err_del_component; goto err_del_component;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment