ihs_video_out: Fix error handling
PATCH 1/1 ihs_video_out: Fix error handling
The ihs_video_out driver's error handling is incorrect in two places (one is a missing negation, and in one place a error should be ignored).
Fix these two instances.
Signed-off-by Mario Six <[email protected]>
--- drivers/video/ihs_video_out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/video/ihs_video_out.c +3 -3
@@ -238,8 +238,8 @@ int ihs_video_out_probe(struct udevice *dev)int res; res =regmap_init_mem (dev_ofnode (dev), &priv->map); -if (!res) { -debug ("%s: Could initialize regmap (err = %d)\n" , dev->name, +if (res) { +debug ("%s: Could not initialize regmap (err = %d)\n" , dev->name, res);return res; }
@@ -322,7 +322,7 @@ int ihs_video_out_probe(struct udevice *dev) } res =display_enable (priv->video_tx,8 , &timing); -if (res) { +if (res && res != -EIO ) {/* Ignore missing DP sink error */ debug ("%s: Could not enable the display (err = %d)\n" , dev->name, res);return res;
Signature · 1 line
2.20.1
PATCH 1/1 ihs_video_out: Fix error handling
Quoted 9 lines · On Mon, 28 Jan 2019 09:50:58 +0100 Mario Six mario.six at gdsys.cc wrote:
The
ihs_video_outdriver's error handling is incorrect in two places (one is a missing negation, and in one place a error should be ignored).Fix these two instances.
Signed-off-by Mario Six <[email protected]>--- drivers/video/ihs_video_out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to u-boot-video/master, thanks!
--
Anatolij