drm/omap: fix panel/encoder probes
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Mar 2016 12:55:53 +0000 (14:55 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 16 Mar 2016 01:08:35 +0000 (11:08 +1000)
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 <tomi.valkeinen@ti.com>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

index 3fd5a0b4d4cf71a1853a1876cc10bb3ff59b6940..747f26a55e43cd74f337042accff30f383159f72 100644 (file)
@@ -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);
index ae7dd625e19f636fdcb2e40f6df98c97f2f005f0..36485c2137ce43e57cad855dc459f9c0f13bcc41 100644 (file)
@@ -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);