From: Shawn Guo Date: Mon, 29 Jul 2013 06:01:32 +0000 (+0800) Subject: ENGR00240988: gpu: use dummy thermal notifier functions on 3.10 kernel X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=65adcce33f9941955a2c852e89e22f5b32db9769;p=karo-tx-linux.git ENGR00240988: gpu: use dummy thermal notifier functions on 3.10 kernel The thermal notifier calls are not supported yet on 3.10 kernel. Let's use dummy functions for now. Signed-off-by: Shawn Guo --- diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c index 83118002db5a..8e7c5e230952 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c @@ -79,9 +79,20 @@ task_notify_func(struct notifier_block *self, unsigned long val, void *data) #define _GC_OBJ_ZONE gcvZONE_DRIVER #if gcdENABLE_FSCALE_VAL_ADJUST +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) +static inline int register_thermal_notifier(struct notifier_block *nb) +{ + return 0; +} +static inline int unregister_thermal_notifier(struct notifier_block *nb) +{ + return 0; +} +#else extern int register_thermal_notifier(struct notifier_block *nb); extern int unregister_thermal_notifier(struct notifier_block *nb); #endif +#endif MODULE_DESCRIPTION("Vivante Graphics Driver"); MODULE_LICENSE("GPL");