From: Tomi Valkeinen Date: Tue, 15 Mar 2016 12:55:53 +0000 (+0200) Subject: drm/omap: fix panel/encoder probes X-Git-Tag: Ubuntu-5.10.0-12.13~12976^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=55f6fca3be37539fbb0a455deae400e04b968cdd;p=mirror_ubuntu-hirsute-kernel.git drm/omap: fix panel/encoder probes The recent changes which removed platform data support from panels & encoders had a few mistakes, causing probes of DVI connector and DSI command mode panels to fail every time due to missing '!'. Fix the if()s. Signed-off-by: Tomi Valkeinen Reported-by: Laurent Pinchart Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c index 3fd5a0b4d4cf..747f26a55e43 100644 --- a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c +++ b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c @@ -279,7 +279,7 @@ static int dvic_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ddata); - if (pdev->dev.of_node) + if (!pdev->dev.of_node) return -ENODEV; r = dvic_probe_of(pdev); diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index ae7dd625e19f..36485c2137ce 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c @@ -1180,7 +1180,7 @@ static int dsicm_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ddata); ddata->pdev = pdev; - if (pdev->dev.of_node) + if (!pdev->dev.of_node) return -ENODEV; r = dsicm_probe_of(pdev);