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 <mario.six@gdsys.cc>
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;
}
}
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;