|
@@ -1068,7 +1068,6 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
|
|
|
goto err_register;
|
|
|
}
|
|
|
|
|
|
- pdev->dev.of_node = of_node;
|
|
|
pdev->dev.parent = dev;
|
|
|
|
|
|
ret = platform_device_add_data(pdev, ®->pdata,
|
|
@@ -1079,6 +1078,12 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
|
|
|
platform_device_put(pdev);
|
|
|
goto err_register;
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Set of_node only after calling platform_device_add. Otherwise
|
|
|
+ * the platform:imx-ipuv3-crtc modalias won't be used.
|
|
|
+ */
|
|
|
+ pdev->dev.of_node = of_node;
|
|
|
}
|
|
|
|
|
|
return 0;
|