From: Eric Anholt Date: Thu, 15 Jun 2017 17:54:23 +0000 (-0700) Subject: bridge: Fix panel-bridge error return on !panel. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6f0acb2f0da89625aefc84b448f457b9161436b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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);