The thermal notifier calls are not supported yet on 3.10 kernel. Let's
use dummy functions for now.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
#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");