MALI: rockchip: upgrade utgard DDK to r6p0-01rel1
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / mali400 / mali / linux / mali_kernel_linux.h
index f6042712d1e3a753ca5b206341aa7e7ae10f3db9..e87879a8b8047f686abec8651ccc97b4c83a68ef 100755 (executable)
@@ -20,9 +20,15 @@ extern "C" {
 #include <linux/rbtree.h>
 #include "mali_kernel_license.h"
 #include "mali_osk_types.h"
+#include <linux/version.h>
 
 extern struct platform_device *mali_platform_device;
 
+/* After 3.19.0 kenrel droped CONFIG_PM_RUNTIME define,define by ourself */
+#if defined(CONFIG_PM) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
+#define CONFIG_PM_RUNTIME 1
+#endif
+
 #ifdef __cplusplus
 }
 #endif