[PATCH 7/8] video: Handle return value from cyclic_register()
Marek Vasut
marek.vasut+renesas at mailbox.org
Sat Jan 18 05:01:01 CET 2025
Handle the error code returned by cyclic_register() and propagate it.
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Aaron Williams <awilliams at marvell.com>
Cc: Anatolij Gustschin <agust at denx.de>
Cc: Angelo Dureghello <angelo at kernel-space.org>
Cc: Christian Marangi <ansuelsmth at gmail.com>
Cc: Devarsh Thakkar <devarsht at ti.com>
Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
Cc: Jaehoon Chung <jh80.chung at samsung.com>
Cc: Michael Polyntsov <michael.polyntsov at iopsys.eu>
Cc: Michael Trimarchi <michael at amarulasolutions.com>
Cc: Nikhil M Jain <n-jain1 at ti.com>
Cc: Peng Fan <peng.fan at nxp.com>
Cc: Peter Robinson <pbrobinson at gmail.com>
Cc: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
Cc: Ronald Wahl <ronald.wahl at legrand.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Stefan Roese <sr at denx.de>
Cc: Tim Harvey <tharvey at gateworks.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at 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 */
--
2.45.2
More information about the U-Boot
mailing list