diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/clk.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/clk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/clk.c b/drivers/gpu/nvgpu/common/linux/clk.c index 775e5661..f24445b3 100644 --- a/drivers/gpu/nvgpu/common/linux/clk.c +++ b/drivers/gpu/nvgpu/common/linux/clk.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | static unsigned long nvgpu_linux_clk_get_rate(struct gk20a *g, u32 api_domain) | 28 | static unsigned long nvgpu_linux_clk_get_rate(struct gk20a *g, u32 api_domain) |
29 | { | 29 | { |
30 | struct gk20a_platform *platform = gk20a_get_platform(g->dev); | 30 | struct gk20a_platform *platform = gk20a_get_platform(dev_from_gk20a(g)); |
31 | unsigned long ret; | 31 | unsigned long ret; |
32 | 32 | ||
33 | switch (api_domain) { | 33 | switch (api_domain) { |
@@ -52,7 +52,7 @@ static unsigned long nvgpu_linux_clk_get_rate(struct gk20a *g, u32 api_domain) | |||
52 | static int nvgpu_linux_clk_set_rate(struct gk20a *g, | 52 | static int nvgpu_linux_clk_set_rate(struct gk20a *g, |
53 | u32 api_domain, unsigned long rate) | 53 | u32 api_domain, unsigned long rate) |
54 | { | 54 | { |
55 | struct gk20a_platform *platform = gk20a_get_platform(g->dev); | 55 | struct gk20a_platform *platform = gk20a_get_platform(dev_from_gk20a(g)); |
56 | int ret; | 56 | int ret; |
57 | 57 | ||
58 | switch (api_domain) { | 58 | switch (api_domain) { |