diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug.c b/drivers/gpu/nvgpu/common/linux/debug.c index ee93a901..8738f3e7 100644 --- a/drivers/gpu/nvgpu/common/linux/debug.c +++ b/drivers/gpu/nvgpu/common/linux/debug.c | |||
@@ -267,9 +267,6 @@ static int gk20a_railgating_debugfs_init(struct gk20a *g) | |||
267 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | 267 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); |
268 | struct dentry *d; | 268 | struct dentry *d; |
269 | 269 | ||
270 | if (!g->can_railgate) | ||
271 | return 0; | ||
272 | |||
273 | d = debugfs_create_file( | 270 | d = debugfs_create_file( |
274 | "railgate_residency", S_IRUGO|S_IWUSR, l->debugfs, g, | 271 | "railgate_residency", S_IRUGO|S_IWUSR, l->debugfs, g, |
275 | &railgate_residency_fops); | 272 | &railgate_residency_fops); |