diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 81b3db82..53c78447 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -668,7 +668,7 @@ void gk20a_remove_support(struct gk20a *g) | |||
668 | if (g->mm.remove_support) | 668 | if (g->mm.remove_support) |
669 | g->mm.remove_support(&g->mm); | 669 | g->mm.remove_support(&g->mm); |
670 | 670 | ||
671 | if (g->sim->remove_support) | 671 | if (g->sim && g->sim->remove_support) |
672 | g->sim->remove_support(g->sim); | 672 | g->sim->remove_support(g->sim); |
673 | 673 | ||
674 | /* free mappings to registers, etc */ | 674 | /* free mappings to registers, etc */ |