diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 676b493b..602d713b 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -252,8 +252,12 @@ void gk20a_debug_dump_device(struct platform_device *pdev) | |||
252 | }; | 252 | }; |
253 | 253 | ||
254 | /* Dump the first device if no info is provided */ | 254 | /* Dump the first device if no info is provided */ |
255 | if (!pdev && gk20a_device) | 255 | if (!pdev) { |
256 | if (!gk20a_device) | ||
257 | return; | ||
258 | |||
256 | pdev = gk20a_device; | 259 | pdev = gk20a_device; |
260 | } | ||
257 | 261 | ||
258 | gk20a_debug_show_dump(pdev, &o); | 262 | gk20a_debug_show_dump(pdev, &o); |
259 | } | 263 | } |