Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b326b8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "msm: kgsl: Do not decrease the KGSL open count""

parents 66305307 89d64fee
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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 @@ static int kgsl_close_device(struct kgsl_device *device)
	int result = 0;

	mutex_lock(&device->mutex);

	if (!adreno_is_a6xx(ADRENO_DEVICE(device)))
	device->open_count--;

	if (device->open_count == 0) {

		/* Wait for the active count to go to 0 */