From d46c8e40035f65194baceeb4210a395c8087940a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 18 Jun 2014 14:22:44 +0300 Subject: gpu: nvgpu: Remove extra g field in pmu_gk20a pmu_gk20a has a pointer to struct gk20a *. As pmu_gk20a is part of gk20a, there's no need to have the circular dependency. Bug 200006956 Change-Id: I6d5d10a93b2fba4a26a1e28b3c5206506dc6cc04 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/424767 --- drivers/gpu/nvgpu/gk20a/gk20a.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 60b9b80e..127cb85c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -522,6 +522,11 @@ static inline struct gk20a *gk20a_from_as(struct gk20a_as *as) { return container_of(as, struct gk20a, as); } +static inline struct gk20a *gk20a_from_pmu(struct pmu_gk20a *pmu) +{ + return container_of(pmu, struct gk20a, pmu); +} + static inline u32 u64_hi32(u64 n) { return (u32)((n >> 32) & ~(u32)0); -- cgit v1.2.2