Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: ipu-v3: Stop overwriting pdev->dev.of_node of child devices

Setting dev->of_node changes the modalias and breaks module autoloading.
Since there is an of_node field in the platform data passed to child
devices, we don't even need this anymore.

Suggested-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

-6
-6
drivers/gpu/ipu-v3/ipu-common.c
··· 1238 1238 platform_device_put(pdev); 1239 1239 goto err_register; 1240 1240 } 1241 - 1242 - /* 1243 - * Set of_node only after calling platform_device_add. Otherwise 1244 - * the platform:imx-ipuv3-crtc modalias won't be used. 1245 - */ 1246 - pdev->dev.of_node = of_node; 1247 1241 } 1248 1242 1249 1243 return 0;