Skip to content

Commit

Permalink
drm/imx: imx-ldb: check if channel is enabled before printing warning
Browse files Browse the repository at this point in the history
If the second LVDS channel has been disabled in the DT when using dual-channel
mode we should not print a warning.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
lynxeye-dev authored and pH5 committed Jul 16, 2018
1 parent b582623 commit c80d673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/imx/imx-ldb.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,14 @@ static int imx_ldb_bind(struct device *dev, struct device *master, void *data)
if (ret || i < 0 || i > 1)
return -EINVAL;

if (!of_device_is_available(child))
continue;

if (dual && i > 0) {
dev_warn(dev, "dual-channel mode, ignoring second output\n");
continue;
}

if (!of_device_is_available(child))
continue;

channel = &imx_ldb->channel[i];
channel->ldb = imx_ldb;
channel->chno = i;
Expand Down

0 comments on commit c80d673

Please sign in to comment.