Blame 0001-gpu-ipu-v3-Fix-imx-ipuv3-crtc-module-autoloading.patch
|
|
57a67d3 |
From 88fd0f33c3cc5aa6a26f56902241941ac717e9f8 Mon Sep 17 00:00:00 2001
|
|
|
57a67d3 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
57a67d3 |
Date: Wed, 27 Apr 2016 13:44:05 +0100
|
|
|
57a67d3 |
Subject: [PATCH] gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading
|
|
|
57a67d3 |
|
|
|
57a67d3 |
---
|
|
|
57a67d3 |
drivers/gpu/ipu-v3/ipu-common.c | 7 ++++++-
|
|
|
57a67d3 |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
57a67d3 |
|
|
|
57a67d3 |
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c
|
|
|
57a67d3 |
index e00db3f..abb98c7 100644
|
|
|
57a67d3 |
--- a/drivers/gpu/ipu-v3/ipu-common.c
|
|
|
57a67d3 |
+++ b/drivers/gpu/ipu-v3/ipu-common.c
|
|
|
57a67d3 |
@@ -1068,7 +1068,6 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
|
|
|
57a67d3 |
goto err_register;
|
|
|
57a67d3 |
}
|
|
|
57a67d3 |
|
|
|
57a67d3 |
- pdev->dev.of_node = of_node;
|
|
|
57a67d3 |
pdev->dev.parent = dev;
|
|
|
57a67d3 |
|
|
|
57a67d3 |
ret = platform_device_add_data(pdev, ®->pdata,
|
|
|
57a67d3 |
@@ -1079,6 +1078,12 @@ static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
|
|
|
57a67d3 |
platform_device_put(pdev);
|
|
|
57a67d3 |
goto err_register;
|
|
|
57a67d3 |
}
|
|
|
57a67d3 |
+
|
|
|
57a67d3 |
+ /*
|
|
|
57a67d3 |
+ * Set of_node only after calling platform_device_add. Otherwise
|
|
|
57a67d3 |
+ * the platform:imx-ipuv3-crtc modalias won't be used.
|
|
|
57a67d3 |
+ */
|
|
|
57a67d3 |
+ pdev->dev.of_node = of_node;
|
|
|
57a67d3 |
}
|
|
|
57a67d3 |
|
|
|
57a67d3 |
return 0;
|
|
|
57a67d3 |
--
|
|
|
57a67d3 |
2.7.4
|
|
|
57a67d3 |
|