2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00

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>
This commit is contained in:
Tomi Valkeinen 2016-03-15 14:55:53 +02:00 committed by Dave Airlie
parent 211afd577a
commit 55f6fca3be
2 changed files with 2 additions and 2 deletions

View 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);

View 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);