summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c
index 6db37d72..058df3c4 100644
--- a/drivers/gpu/nvgpu/gm206/bios_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c
@@ -256,7 +256,9 @@ int gm206_bios_init(struct gk20a *g)
256{ 256{
257 unsigned int i; 257 unsigned int i;
258 struct gk20a_platform *platform = dev_get_drvdata(g->dev); 258 struct gk20a_platform *platform = dev_get_drvdata(g->dev);
259#ifdef CONFIG_DEBUG_FS
259 struct dentry *d; 260 struct dentry *d;
261#endif
260 struct nvgpu_firmware *bios_fw; 262 struct nvgpu_firmware *bios_fw;
261 int err; 263 int err;
262 struct pci_dev *pdev = to_pci_dev(g->dev); 264 struct pci_dev *pdev = to_pci_dev(g->dev);
@@ -317,6 +319,7 @@ int gm206_bios_init(struct gk20a *g)
317 (g->pci_device_id == 0x1c75) && 319 (g->pci_device_id == 0x1c75) &&
318 (g->gpu_characteristics.vbios_version == 0x86065300); 320 (g->gpu_characteristics.vbios_version == 0x86065300);
319 321
322#ifdef CONFIG_DEBUG_FS
320 g->bios_blob.data = g->bios.data; 323 g->bios_blob.data = g->bios.data;
321 g->bios_blob.size = g->bios.size; 324 g->bios_blob.size = g->bios.size;
322 325
@@ -324,6 +327,7 @@ int gm206_bios_init(struct gk20a *g)
324 &g->bios_blob); 327 &g->bios_blob);
325 if (!d) 328 if (!d)
326 nvgpu_err(g, "No debugfs?"); 329 nvgpu_err(g, "No debugfs?");
330#endif
327 331
328 gk20a_dbg_fn("done"); 332 gk20a_dbg_fn("done");
329 333