]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00240988: gpu: use a dummy imx_gpc_power_up_pu() on 3.10 for now
authorShawn Guo <shawn.guo@freescale.com>
Mon, 29 Jul 2013 03:32:16 +0000 (11:32 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:00 +0000 (09:54 +0800)
Use a dummy imx_gpc_power_up_pu() on 3.10 kernel for now, and will need
to revisit it when the power management of PU is ready on 3.10 kernel.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c

index 2a0379b9284fc31d736dd8419d57d23f7e74cf78..f82fe4be2cca18b49b647f4f037d1e3bcb994446 100644 (file)
@@ -38,7 +38,9 @@
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
 #include <linux/math64.h>
 #endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
+static inline void imx_gpc_power_up_pu(bool flag) {}
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
 #include <mach/common.h>
 #endif
 #include <linux/delay.h>