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

Commit a434e7c8 authored by Jordan Crouse's avatar Jordan Crouse Committed by Jeremy Gebben
Browse files

msm: kgsl: Don't bug if a VBIF implementation isn't enabled



As we get better at doing VBIF the number of registers we have to
program at init should be getting smaller and smaller - technically
converging on zero at some point.  Don't BUG_ON if a VBIF table
isn't defined for a particular platform because maybe we don't need
one?

Change-Id: Ic0dedbad25f779f50decb2df9e8ff4fa7f5f4c5f
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 51198baa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1154,8 +1154,8 @@ static inline void adreno_vbif_start(struct adreno_device *adreno_dev,
			break;
		}
	}
	BUG_ON(vbif == NULL);
	while (vbif->reg != 0) {

	while ((vbif != NULL) && (vbif->reg != 0)) {
		kgsl_regwrite(&adreno_dev->dev, vbif->reg, vbif->val);
		vbif++;
	}