]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 27 Apr 2016 08:17:51 +0000 (10:17 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 5 May 2016 00:34:52 +0000 (10:34 +1000)
commit627d1689b6e5ce684ebe8a3a257dbccb9d8dff0f
treecc9499b79a1805dc27b9de902d0a341524946f1d
parent3e7ec868a83c4f44b6de56cefa2be4799cf08e89
gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading

If of_node is set before calling platform_device_add, the driver core
will try to use of: modalias matching, which fails because the device
tree nodes don't have a compatible property set. This patch fixes
imx-ipuv3-crtc module autoloading by setting the of_node property only
after the platform modalias is set.

Fixes: bd2e83e06dbb ("gpu: ipu-v3: Assign of_node of child platform devices to corresponding ports")
Reported-by: Dennis Gilmore <dennis@ausil.us>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-By: Dennis Gilmore <dennis@ausil.us>
Cc: stable@vger.kernel.org # 4.4+
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/ipu-v3/ipu-common.c