video: ARM CLCD: fix Vexpress regression

The CLCD does not come up on Versatile Express as it does not
(currently) have a syscon node for controlling the block apart
from the CLCD itself. Make sure the .init() function can bail
out without an error making it probe again.

Reported-by: Amit Pundir <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Tested-by: Amit Pundir <[email protected]>
Tested-by: Nicolae Rosia <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
Linus Walleij 2016-10-20 08:46:32 +02:00 • committed by Tomi Valkeinen
commit cfbd950d5e

View file

@ -526,8 +526,8 @@ int versatile_clcd_init_panel(struct clcd_fb *fb,
np = of_find_matching_node_and_match(NULL, versatile_clcd_of_match,
&clcd_id);
if (!np) {
dev_err(dev, "no Versatile syscon node\n");
return -ENODEV;
/* Vexpress does not have this */
return 0;
}
versatile_clcd_type = (enum versatile_clcd)clcd_id->data;