From: Shawn Guo Date: Fri, 26 Jul 2013 09:03:13 +0000 (+0800) Subject: ENGR00240988: gpu: mach/hardware.h is not available in kernel 3.10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c7a2ca92ae088f341386b7a7d3a824ac0e4d00c7;p=karo-tx-linux.git ENGR00240988: gpu: mach/hardware.h is not available in kernel 3.10 In kernel 3.10, drivers can not include any headers. Do not include for 3.10 kernel to fix the follow build errors. CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.o drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:28:27: fatal error: mach/hardware.h: No such file or directory CC drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.o drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:33:27: fatal error: mach/hardware.h: No such file or directory Signed-off-by: Shawn Guo --- diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c index a57e9f71b19e..2f755d06e5e2 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c @@ -25,7 +25,9 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) #include +#endif #include #define _GC_OBJ_ZONE gcvZONE_DEVICE diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c index e7edc39c23ca..60452400046c 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c @@ -30,7 +30,9 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) #include +#endif #include #include #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)