Skip to content

Commit 32bd29b

Browse files
committed
drm/bridge: tc358767: Fix return value on error case
If the hpd_pin is invalid, the driver returns 'ret'. But 'ret' contains 0, instead of an error value. Return -EINVAL instead. Fixes: f25ee50 ("drm/bridge: tc358767: add IRQ and HPD support") Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 155d6fb commit 32bd29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/tc358767.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ static int tc_probe(struct i2c_client *client)
22732273
} else {
22742274
if (tc->hpd_pin < 0 || tc->hpd_pin > 1) {
22752275
dev_err(dev, "failed to parse HPD number\n");
2276-
return ret;
2276+
return -EINVAL;
22772277
}
22782278
}
22792279

0 commit comments

Comments
 (0)