diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c index 3677b02d..39559dac 100644 --- a/drivers/gpu/nvgpu/pci.c +++ b/drivers/gpu/nvgpu/pci.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/pm_runtime.h> | 19 | #include <linux/pm_runtime.h> |
20 | 20 | ||
21 | #include <nvgpu/nvgpu_common.h> | 21 | #include <nvgpu/nvgpu_common.h> |
22 | #include <nvgpu/kmem.h> | ||
22 | 23 | ||
23 | #include "gk20a/gk20a.h" | 24 | #include "gk20a/gk20a.h" |
24 | #include "gk20a/platform_gk20a.h" | 25 | #include "gk20a/platform_gk20a.h" |
@@ -358,6 +359,8 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, | |||
358 | platform->g = g; | 359 | platform->g = g; |
359 | g->dev = &pdev->dev; | 360 | g->dev = &pdev->dev; |
360 | 361 | ||
362 | nvgpu_kmem_init(g); | ||
363 | |||
361 | err = pci_enable_device(pdev); | 364 | err = pci_enable_device(pdev); |
362 | if (err) | 365 | if (err) |
363 | return err; | 366 | return err; |