Commit e6f0acb2 authored by Eric Anholt's avatar Eric Anholt Committed by Archit Taneja

bridge: Fix panel-bridge error return on !panel.

ERR_PTR() needs a negative errno argument.
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170615175423.17954-1-eric@anholt.net
parent 64da710d
......@@ -161,7 +161,7 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
int ret;
if (!panel)
return ERR_PTR(EINVAL);
return ERR_PTR(-EINVAL);
panel_bridge = devm_kzalloc(panel->dev, sizeof(*panel_bridge),
GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment