diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index cd5c646f..f863b056 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -285,8 +285,9 @@ int gk20a_railgating_debugfs_init(struct device *dev) | |||
285 | { | 285 | { |
286 | struct dentry *d; | 286 | struct dentry *d; |
287 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 287 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
288 | struct gk20a *g = get_gk20a(dev); | ||
288 | 289 | ||
289 | if (!platform->can_railgate) | 290 | if (!g->can_railgate) |
290 | return 0; | 291 | return 0; |
291 | 292 | ||
292 | d = debugfs_create_file( | 293 | d = debugfs_create_file( |