On 07/03/16 10:16, Laurent Pinchart wrote:
@@ -319,17 +279,12 @@ static int dvic_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ddata);
- if (dev_get_platdata(&pdev->dev)) {
r = dvic_probe_pdata(pdev);
if (r)
return r;
- } else if (pdev->dev.of_node) {
r = dvic_probe_of(pdev);
if (r)
return r;
- } else {
- if (pdev->dev.of_node)
I think you need to invert the condition.
Thanks! Well, I obviously wasn't too careful here... I'll go through all of them.
Tomi