drm/atmel-hlcdc: Fix panel registration
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 6 Jun 2017 11:34:26 +0000 (13:34 +0200)
committerArchit Taneja <architt@codeaurora.org>
Wed, 7 Jun 2017 15:57:43 +0000 (21:27 +0530)
Attach the panel-bridge created by drm_panel_bridge_add() to the
parallel RGB encoder.

Fixes: 96160a8071b2 ("drm/atmel-hlcdc: Replace the panel usage with drm_panel_bridge.")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1496748866-17165-1-git-send-email-boris.brezillon@free-electrons.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c

index 340ef962aa8182fb1c8fbfb0d1104db9ca03a1c2..dfdd18763b0a8d17f917f7cb0753972abff17230 100644 (file)
@@ -59,8 +59,6 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev,
                bridge = drm_panel_bridge_add(panel, DRM_MODE_CONNECTOR_Unknown);
                if (IS_ERR(bridge))
                        return PTR_ERR(bridge);
-
-               return 0;
        }
 
        if (bridge) {