Skip to content
Commit 763e6366 authored by Wei Yongjun's avatar Wei Yongjun Committed by Tomi Valkeinen
Browse files

video: ARM CLCD: fix return value check in versatile_clcd_init_panel()

In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: 25348160

 ("video: ARM CLCD: add special panel hook for Versatiles")
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1121a418
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