If PM is disabled, WAKELOCK will also get disabled. That gives compilation error at kgsl driver. drivers/gpu/msm/kgsl_pwrctrl.c:755: error: 'struct wake_lock' has no member named 'name' So, ifdef check whithin struct wake_lock will not give more advantages but break builds. So, remove CONFIG_HAS_WAKELOCK check in struct wake_lock. Change-Id: I9f808f3b6ff14af6fa7f91dee7fe279ddab09add Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
2.9 KiB
2.9 KiB