diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2017-02-16 14:46:31 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-02-17 08:04:27 +0100 |
commit | 0e47b0275bdb40a9dab7a86535b1fcd85d874007 (patch) | |
tree | bacc0602904c79304ff4dcb1cd925d44bbebe93b /drivers/gpu/ipu-v3/ipu-common.c | |
parent | gpu: ipu-v3: export ipu_csi_set_downsize (diff) | |
download | linux-0e47b0275bdb40a9dab7a86535b1fcd85d874007.tar.xz linux-0e47b0275bdb40a9dab7a86535b1fcd85d874007.zip |
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>
Diffstat (limited to 'drivers/gpu/ipu-v3/ipu-common.c')
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-common.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c index 97218af4fe75..8368e6f766ee 100644 --- a/drivers/gpu/ipu-v3/ipu-common.c +++ b/drivers/gpu/ipu-v3/ipu-common.c @@ -1238,12 +1238,6 @@ 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; |