
Handle the error code returned by cyclic_register() and propagate it.
Signed-off-by: Marek Vasut marek.vasut+renesas@mailbox.org --- Cc: Aaron Williams awilliams@marvell.com Cc: Anatolij Gustschin agust@denx.de Cc: Angelo Dureghello angelo@kernel-space.org Cc: Christian Marangi ansuelsmth@gmail.com Cc: Devarsh Thakkar devarsht@ti.com Cc: Heinrich Schuchardt xypron.glpk@gmx.de Cc: Jaehoon Chung jh80.chung@samsung.com Cc: Michael Polyntsov michael.polyntsov@iopsys.eu Cc: Michael Trimarchi michael@amarulasolutions.com Cc: Nikhil M Jain n-jain1@ti.com Cc: Peng Fan peng.fan@nxp.com Cc: Peter Robinson pbrobinson@gmail.com Cc: Rasmus Villemoes rasmus.villemoes@prevas.dk Cc: Ronald Wahl ronald.wahl@legrand.com Cc: Simon Glass sjg@chromium.org Cc: Stefan Roese sr@denx.de Cc: Tim Harvey tharvey@gateworks.com Cc: Tom Rini trini@konsulko.com Cc: u-boot@lists.denx.de --- drivers/video/video-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index a5b3e898066..94b2c3c3b91 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -653,12 +653,12 @@ static int video_post_probe(struct udevice *dev) !uc_priv->cyc_active) { uint ms = CONFIG_IF_ENABLED_INT(CYCLIC, VIDEO_SYNC_CYCLIC_MS);
- cyclic_register(&uc_priv->cyc, video_idle, ms * 1000, - "video_init"); + ret = cyclic_register(&uc_priv->cyc, video_idle, ms * 1000, + "video_init"); uc_priv->cyc_active = true; }
- return 0; + return ret; };
/* Post-relocation, allocate memory for the frame buffer */