msm: kgsl: Cleanup a superfluous structure in kgsl_device.h
struct kgsl_memregion was used to store the MMIO and GMEM
addressing for KGSL and adreno but it didn't serve much
purpose other than another level of redirection in the
structures. Remove it and add the necessary pointer and
size members directly to the KGSL and adreno structs.
Change-Id: Ic0dedbad8ec3f0a2c63383fa451cc39a25cab087
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
diff --git a/drivers/gpu/msm/kgsl_device.h b/drivers/gpu/msm/kgsl_device.h
index fece715..7d3cfca 100644
--- a/drivers/gpu/msm/kgsl_device.h
+++ b/drivers/gpu/msm/kgsl_device.h
@@ -110,13 +110,6 @@
unsigned int sizebytes);
};
-struct kgsl_memregion {
- unsigned char *mmio_virt_base;
- unsigned int mmio_phys_base;
- uint32_t gpu_base;
- unsigned int sizebytes;
-};
-
/* MH register values */
struct kgsl_mh {
unsigned int mharb;
@@ -143,7 +136,9 @@
unsigned int ver_minor;
uint32_t flags;
enum kgsl_deviceid id;
- struct kgsl_memregion regspace;
+ unsigned long reg_phys;
+ void *reg_virt;
+ unsigned int reg_len;
struct kgsl_memdesc memstore;
const char *iomemname;