From d7361d4d4cb63822ebd455980d17ab245a0d6cad Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 1 May 2017 10:41:13 -0700 Subject: gpu: nvgpu: Access ptimer_src_freq from struct gk20a Fix the last place where ptimer_src_freq is accessed directly from platform structure. JIRA NVGPU-16 Change-Id: I41b924779e1e639bf585cd96cb8c11de6eeb18bb Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1473704 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 8014fd8c..6db08a61 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -143,9 +143,8 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g, int timeslice_period, int *__timeslice_timeout, int *__timeslice_scale) { - struct gk20a_platform *platform = dev_get_drvdata(g->dev); int value = scale_ptimer(timeslice_period, - ptimer_scalingfactor10x(platform->ptimer_src_freq)); + ptimer_scalingfactor10x(g->ptimer_src_freq)); int shift = 0; /* value field is 8 bits long */ -- cgit v1.2.2