diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index fb8b8b141..c606e0272 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -1408,6 +1408,8 @@ static int gk20a_probe(struct platform_device *dev) spin_lock_init(&gk20a->mc_enable_lock); + gk20a_debug_init(dev); + /* Initialize the platform interface. */ err = platform->probe(dev); if (err) { @@ -1440,8 +1442,6 @@ static int gk20a_probe(struct platform_device *dev) dev_err(&dev->dev, "failed to allocate secure buffer %d\n", err); - gk20a_debug_init(dev); - /* Set DMA parameters to allow larger sgt lists */ dev->dev.dma_parms = &gk20a->dma_parms; dma_set_max_seg_size(&dev->dev, UINT_MAX);