Skip to content

Commit 55f6fca

Browse files
tombaairlied
authored andcommitted
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 <tomi.valkeinen@ti.com> Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 211afd5 commit 55f6fca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/omapdrm/displays/connector-dvi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static int dvic_probe(struct platform_device *pdev)
279279

280280
platform_set_drvdata(pdev, ddata);
281281

282-
if (pdev->dev.of_node)
282+
if (!pdev->dev.of_node)
283283
return -ENODEV;
284284

285285
r = dvic_probe_of(pdev);

drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ static int dsicm_probe(struct platform_device *pdev)
11801180
platform_set_drvdata(pdev, ddata);
11811181
ddata->pdev = pdev;
11821182

1183-
if (pdev->dev.of_node)
1183+
if (!pdev->dev.of_node)
11841184
return -ENODEV;
11851185

11861186
r = dsicm_probe_of(pdev);

0 commit comments

Comments
 (0)