]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/atmel-hlcdc: Fix output initialization
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 18 May 2017 12:35:21 +0000 (14:35 +0200)
committerSean Paul <seanpaul@chromium.org>
Thu, 18 May 2017 14:56:43 +0000 (10:56 -0400)
commit6bee9b78a7a5ea257b24d93974538938c82b1169
treed6e0d44355ce04957d594497f26c1c32ac653a97
parent52499a6ad2aef20f7baf5872e97988c385170f1b
drm/atmel-hlcdc: Fix output initialization

drm_of_find_panel_or_bridge() is expecting np to point to the encoder
node, not the bridge or panel this encoder is feeding.
Moreover, the endpoint parameter passed to drm_of_find_panel_or_bridge()
is always set to zero, which prevents us from probing all outputs.

We also move the atmel_hlcdc_rgb_output allocation after the
panel/bridge detection to avoid useless allocations.

Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: ebc944613567 ("drm: convert drivers to use drm_of_find_panel_or_bridge")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1495110921-4032-1-git-send-email-boris.brezillon@free-electrons.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c