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>
platform_set_drvdata(pdev, ddata);
- if (pdev->dev.of_node)
+ if (!pdev->dev.of_node)
return -ENODEV;
r = dvic_probe_of(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);