summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-ldb.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-04-11 17:31:36 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2018-07-16 16:56:34 +0200
commitc80d673b91a6c81d765864e10f2b15110ee900ad (patch)
tree9000c84b6a18af4c781b78705875e95583566a7e /drivers/gpu/drm/imx/imx-ldb.c
parentb58262396fabd43dc869b576e3defdd23b32fe94 (diff)
downloadblackbird-op-linux-c80d673b91a6c81d765864e10f2b15110ee900ad.tar.gz
blackbird-op-linux-c80d673b91a6c81d765864e10f2b15110ee900ad.zip
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 <l.stach@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
-rw-r--r--drivers/gpu/drm/imx/imx-ldb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c
index 17974c0b4be8..dd5312b02a8d 100644
--- a/drivers/gpu/drm/imx/imx-ldb.c
+++ b/drivers/gpu/drm/imx/imx-ldb.c
@@ -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;
OpenPOWER on IntegriCloud