diff options
author | Eric Anholt <eric@anholt.net> | 2017-06-15 10:54:23 -0700 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-06-21 15:38:02 +0530 |
commit | e6f0acb2f0da89625aefc84b448f457b9161436b (patch) | |
tree | c2971d569c78b3c5c0df2a2159d614690f952b15 /drivers | |
parent | 64da710d1da5c5174c0b6bacbd6202d99624eeed (diff) |
bridge: Fix panel-bridge error return on !panel.
ERR_PTR() needs a negative errno argument.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170615175423.17954-1-eric@anholt.net
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/bridge/panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 99f9a4beb859..67fe19e5a9c6 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -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); |