]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
ENGR00240988: gpu: use dummy thermal notifier functions on 3.10 kernel
[karo-tx-linux.git] / drivers / mxc / gpu-viv / hal / os / linux / kernel / gc_hal_kernel_driver.c
index 83118002db5aab61d8040b402d9ecf52f49338fb..8e7c5e23095268231e75e4d0d27020e6c3dbf0e9 100644 (file)
@@ -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");