summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/pstate/pstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c
index 512653ba..937756d3 100644
--- a/drivers/gpu/nvgpu/pstate/pstate.c
+++ b/drivers/gpu/nvgpu/pstate/pstate.c
@@ -307,7 +307,7 @@ static int parse_pstate_entry_5x(struct gk20a *g,
307static int parse_pstate_table_5x(struct gk20a *g, 307static int parse_pstate_table_5x(struct gk20a *g,
308 struct vbios_pstate_header_5x *hdr) 308 struct vbios_pstate_header_5x *hdr)
309{ 309{
310 struct pstate _pstate, *pstate = &_pstate; 310 struct pstate _pstate, *pstate;
311 struct vbios_pstate_entry_5x *entry; 311 struct vbios_pstate_entry_5x *entry;
312 u32 entry_size; 312 u32 entry_size;
313 u8 i; 313 u8 i;
@@ -333,11 +333,11 @@ static int parse_pstate_table_5x(struct gk20a *g,
333 if (entry->pstate_level == VBIOS_PERFLEVEL_SKIP_ENTRY) 333 if (entry->pstate_level == VBIOS_PERFLEVEL_SKIP_ENTRY)
334 continue; 334 continue;
335 335
336 err = parse_pstate_entry_5x(g, hdr, entry, pstate); 336 err = parse_pstate_entry_5x(g, hdr, entry, &_pstate);
337 if (err) 337 if (err)
338 goto done; 338 goto done;
339 339
340 pstate = pstate_construct(g, pstate); 340 pstate = pstate_construct(g, &_pstate);
341 if (!pstate) 341 if (!pstate)
342 goto done; 342 goto done;
343 343