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:
parent
211afd577a
commit
55f6fca3be
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user