diff options
author | Eric Anholt <eric@anholt.net> | 2017-06-15 19:54:23 +0200 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-06-21 12:08:02 +0200 |
commit | e6f0acb2f0da89625aefc84b448f457b9161436b (patch) | |
tree | c2971d569c78b3c5c0df2a2159d614690f952b15 /drivers/gpu | |
parent | Merge tag 'drm-misc-next-2017-06-19_0' of git://anongit.freedesktop.org/git/d... (diff) | |
download | linux-e6f0acb2f0da89625aefc84b448f457b9161436b.tar.xz linux-e6f0acb2f0da89625aefc84b448f457b9161436b.zip |
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/gpu')
-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); |