From: Eric Anholt Date: Thu, 15 Jun 2017 17:54:23 +0000 (-0700) Subject: bridge: Fix panel-bridge error return on !panel. X-Git-Tag: v5.15~10870^2~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6f0acb2f0da89625aefc84b448f457b9161436b;p=platform%2Fkernel%2Flinux-starfive.git bridge: Fix panel-bridge error return on !panel. ERR_PTR() needs a negative errno argument. Signed-off-by: Eric Anholt Signed-off-by: Archit Taneja Link: http://patchwork.freedesktop.org/patch/msgid/20170615175423.17954-1-eric@anholt.net --- diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 99f9a4b..67fe19e 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);