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
[ Upstream commit c80d673b91a6c81d765864e10f2b15110ee900ad ]

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 <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
lynxeye-dev authored and gregkh committed Sep 5, 2018
1 parent a43eac2 commit 962ff36
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 962ff36

Please sign in to comment.