38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
From 88fd0f33c3cc5aa6a26f56902241941ac717e9f8 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Robinson <pbrobinson@gmail.com>
|
||
|
Date: Wed, 27 Apr 2016 13:44:05 +0100
|
||
|
Subject: [PATCH] gpu: ipu-v3: Fix imx-ipuv3-crtc module autoloading
|
||
|
|
||
|
---
|
||
|
drivers/gpu/ipu-v3/ipu-common.c | 7 ++++++-
|
||
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c
|
||
|
index e00db3f..abb98c7 100644
|
||
|
--- a/drivers/gpu/ipu-v3/ipu-common.c
|
||
|
+++ b/drivers/gpu/ipu-v3/ipu-common.c
|
||
|
@@ -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;
|
||
|
--
|
||
|
2.7.4
|
||
|
|