diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 476affa0..e9473414 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -172,6 +172,7 @@ int gm206_bios_init(struct gk20a *g) | |||
172 | unsigned int i; | 172 | unsigned int i; |
173 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 173 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); |
174 | #ifdef CONFIG_DEBUG_FS | 174 | #ifdef CONFIG_DEBUG_FS |
175 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
175 | struct dentry *d; | 176 | struct dentry *d; |
176 | #endif | 177 | #endif |
177 | struct nvgpu_firmware *bios_fw; | 178 | struct nvgpu_firmware *bios_fw; |
@@ -239,7 +240,7 @@ int gm206_bios_init(struct gk20a *g) | |||
239 | g->bios_blob.data = g->bios.data; | 240 | g->bios_blob.data = g->bios.data; |
240 | g->bios_blob.size = g->bios.size; | 241 | g->bios_blob.size = g->bios.size; |
241 | 242 | ||
242 | d = debugfs_create_blob("bios", S_IRUGO, platform->debugfs, | 243 | d = debugfs_create_blob("bios", S_IRUGO, l->debugfs, |
243 | &g->bios_blob); | 244 | &g->bios_blob); |
244 | if (!d) | 245 | if (!d) |
245 | nvgpu_err(g, "No debugfs?"); | 246 | nvgpu_err(g, "No debugfs?"); |