summaryrefslogtreecommitdiffstats
path: root/arm-imx-fixdrm.patch
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2012-12-14 15:09:56 +0000
committerPeter Robinson <pbrobinson@gmail.com>2012-12-14 15:09:56 +0000
commit878f7ae56d42c1a8bd402bb4f8fd9c80363e1bac (patch)
tree350c0f874e1b5c3f659be14d2af87ed565d94508 /arm-imx-fixdrm.patch
parente1b90cc25d58509dc7d38041e40f100b3ab1e23f (diff)
downloadkernel-878f7ae56d42c1a8bd402bb4f8fd9c80363e1bac.tar.gz
kernel-878f7ae56d42c1a8bd402bb4f8fd9c80363e1bac.tar.xz
kernel-878f7ae56d42c1a8bd402bb4f8fd9c80363e1bac.zip
Add patch to fix arm imx drm driver build
Diffstat (limited to 'arm-imx-fixdrm.patch')
-rw-r--r--arm-imx-fixdrm.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/arm-imx-fixdrm.patch b/arm-imx-fixdrm.patch
new file mode 100644
index 000000000..069cbb005
--- /dev/null
+++ b/arm-imx-fixdrm.patch
@@ -0,0 +1,37 @@
+This fixes the following error when building for arm-imx:
+> ERROR: "__clk_get_name" [drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.ko] undefined!
+> make[1]: *** [__modpost] Error 1
+> make: *** [modules] Error 2
+
+There are valid usecases to get the name of a clock, be it for debugging
+purposes or to register a children of a clock like done in this IPU driver.
+Therefore exporting __clk_get_name() and make it available for others makes
+sense.
+
+Reported-by: Peter Robinson <pbrobinson at gmail.com>
+CC: Sascha Hauer <s.hauer at pengutronix.de>
+CC: Mike Turquette <mturquette at linaro.org>
+Signed-off-by: Niels de Vos <ndevos at redhat.com>
+---
+ drivers/clk/clk.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
+index 251e45d..fbe0f3a 100644
+--- a/drivers/clk/clk.c
++++ b/drivers/clk/clk.c
+@@ -259,10 +259,11 @@ late_initcall(clk_disable_unused);
+
+ /*** helper functions ***/
+
+-inline const char *__clk_get_name(struct clk *clk)
++const char *__clk_get_name(struct clk *clk)
+ {
+ return !clk ? NULL : clk->name;
+ }
++EXPORT_SYMBOL_GPL(__clk_get_name);
+
+ inline struct clk_hw *__clk_get_hw(struct clk *clk)
+ {
+--
+1.7.11.7