Skip to content

Commit

Permalink
drm/imx: imx-ldb: Register LDB channel1 when it is the only channel t…
Browse files Browse the repository at this point in the history
…o be used

LDB channel1 should be registered if it is the only channel to be used.
Without this patch, imx_ldb_bind() would skip registering LDB channel1
if LDB channel0 is not used, no matter LDB channel1 needs to be used or
not.

Fixes: 8767f47 (drm/imx: imx-ldb: move initialization into probe)
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Liu Ying authored and Philipp Zabel committed Mar 25, 2021
1 parent 69c3ed7 commit 12d0ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/imx/imx-ldb.c
Original file line number Diff line number Diff line change
@@ -583,7 +583,7 @@ static int imx_ldb_bind(struct device *dev, struct device *master, void *data)
struct imx_ldb_channel *channel = &imx_ldb->channel[i];

if (!channel->ldb)
break;
continue;

ret = imx_ldb_register(drm, channel);
if (ret)

0 comments on commit 12d0ca8

Please sign in to comment.