MGS-3464 [#imx-811] fix busfreq build break
authorXianzhong <xianzhong.li@nxp.com>
Wed, 29 Nov 2017 15:19:05 +0000 (23:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:40 +0000 (14:51 -0500)
only include busfreq header when CONFIG_PM is enabled

Date: Nov 29, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Reviewed-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Reviewed-by: Yuchou Gan <yuchou.gan@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c

index b9b7633..43e308d 100644 (file)
@@ -80,7 +80,7 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)
 #  include <mach/viv_gpu.h>
-#else
+#elif defined (CONFIG_PM)
 #  include <linux/pm_runtime.h>
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
 #    include <mach/busfreq.h>