diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index c2daf27e..0206c915 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -68,7 +68,7 @@ void __gk20a_warn_on_no_regs(void) | |||
68 | WARN_ONCE(1, "Attempted access to GPU regs after unmapping!"); | 68 | WARN_ONCE(1, "Attempted access to GPU regs after unmapping!"); |
69 | } | 69 | } |
70 | 70 | ||
71 | static int gk20a_detect_chip(struct gk20a *g) | 71 | int gk20a_detect_chip(struct gk20a *g) |
72 | { | 72 | { |
73 | struct nvgpu_gpu_params *p = &g->params; | 73 | struct nvgpu_gpu_params *p = &g->params; |
74 | 74 | ||
@@ -131,10 +131,6 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
131 | 131 | ||
132 | g->power_on = true; | 132 | g->power_on = true; |
133 | 133 | ||
134 | err = gk20a_detect_chip(g); | ||
135 | if (err) | ||
136 | goto done; | ||
137 | |||
138 | /* | 134 | /* |
139 | * Before probing the GPU make sure the GPU's state is cleared. This is | 135 | * Before probing the GPU make sure the GPU's state is cleared. This is |
140 | * relevant for rebind operations. | 136 | * relevant for rebind operations. |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 5de2b439..2786340e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1549,4 +1549,5 @@ static inline bool gk20a_platform_has_syncpoints(struct gk20a *g) | |||
1549 | #endif | 1549 | #endif |
1550 | } | 1550 | } |
1551 | 1551 | ||
1552 | int gk20a_detect_chip(struct gk20a *g); | ||
1552 | #endif /* GK20A_H */ | 1553 | #endif /* GK20A_H */ |