Revert "msm: kgsl: Do not decrease the KGSL open count"
This reverts commit e4d68fefb0f9af316ad1ef6f87cfcd3339ada542.
Slumber has been verified to work on SDM845 so this is no
longer needed to prevent it.
CRs-Fixed: 2017390
Change-Id: I834f33a8f8d937229e262e08bfbf6db4d0d70a92
Signed-off-by: Kyle Piefer <kpiefer@codeaurora.org>
diff --git a/drivers/gpu/msm/kgsl.c b/drivers/gpu/msm/kgsl.c
index 6a39792..6bd212d 100644
--- a/drivers/gpu/msm/kgsl.c
+++ b/drivers/gpu/msm/kgsl.c
@@ -43,7 +43,6 @@
#include "kgsl_sync.h"
#include "kgsl_compat.h"
#include "kgsl_pool.h"
-#include "adreno.h"
#undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "kgsl."
@@ -1054,10 +1053,7 @@
int result = 0;
mutex_lock(&device->mutex);
-
- if (!adreno_is_a6xx(ADRENO_DEVICE(device)))
- device->open_count--;
-
+ device->open_count--;
if (device->open_count == 0) {
/* Wait for the active count to go to 0 */