diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-07-27 16:50:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-04 12:24:02 -0400 |
commit | a0a3a6323a0e4323d9dedac14b47239535b1cb8b (patch) | |
tree | da46d04cccb6d2bccf0d3e1dd920559995b53542 /drivers/gpu/nvgpu/gk20a | |
parent | 972c42fddf13f658242a4f92124e5fcf194672b3 (diff) |
gpu: nvgpu: Pass gk20a to XVE init
Pass gk20a pointer instead of struct device pointer to XVE init.
Change-Id: I5f5efc1d09430a45a49321830b1d7f17c7a57e2f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1528264
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 7d577cda..7bd6acfd 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -332,7 +332,7 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
332 | if (platform->disable_aspm && g->ops.xve.disable_aspm) | 332 | if (platform->disable_aspm && g->ops.xve.disable_aspm) |
333 | g->ops.xve.disable_aspm(g); | 333 | g->ops.xve.disable_aspm(g); |
334 | 334 | ||
335 | g->ops.xve.sw_init(dev_from_gk20a(g)); | 335 | g->ops.xve.sw_init(g); |
336 | g->ops.xve.available_speeds(g, &speed); | 336 | g->ops.xve.available_speeds(g, &speed); |
337 | 337 | ||
338 | /* Set to max speed */ | 338 | /* Set to max speed */ |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 83cdeb3f..aeba1fcd 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -969,7 +969,7 @@ struct gpu_ops { | |||
969 | } css; | 969 | } css; |
970 | #endif | 970 | #endif |
971 | struct { | 971 | struct { |
972 | int (*sw_init)(struct device *dev); | 972 | int (*sw_init)(struct gk20a *g); |
973 | int (*get_speed)(struct gk20a *g, u32 *xve_link_speed); | 973 | int (*get_speed)(struct gk20a *g, u32 *xve_link_speed); |
974 | int (*set_speed)(struct gk20a *g, u32 xve_link_speed); | 974 | int (*set_speed)(struct gk20a *g, u32 xve_link_speed); |
975 | void (*available_speeds)(struct gk20a *g, u32 *speed_mask); | 975 | void (*available_speeds)(struct gk20a *g, u32 *speed_mask); |