Skip to content

Commit c80d673

Browse files
lynxeye-devpH5
authored andcommitted
drm/imx: imx-ldb: check if channel is enabled before printing warning
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]>
1 parent b582623 commit c80d673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/imx/imx-ldb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,14 +655,14 @@ static int imx_ldb_bind(struct device *dev, struct device *master, void *data)
655655
if (ret || i < 0 || i > 1)
656656
return -EINVAL;
657657

658+
if (!of_device_is_available(child))
659+
continue;
660+
658661
if (dual && i > 0) {
659662
dev_warn(dev, "dual-channel mode, ignoring second output\n");
660663
continue;
661664
}
662665

663-
if (!of_device_is_available(child))
664-
continue;
665-
666666
channel = &imx_ldb->channel[i];
667667
channel->ldb = imx_ldb;
668668
channel->chno = i;

0 commit comments

Comments
 (0)