diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/pci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index fd226ee5..4bf198a0 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -660,7 +660,7 @@ static int gk20a_init_support(struct platform_device *dev) | |||
660 | &g->bar1_mem); | 660 | &g->bar1_mem); |
661 | if (IS_ERR(g->bar1)) { | 661 | if (IS_ERR(g->bar1)) { |
662 | dev_err(dev_from_gk20a(g), "failed to remap gk20a bar1\n"); | 662 | dev_err(dev_from_gk20a(g), "failed to remap gk20a bar1\n"); |
663 | err = PTR_ERR(g->regs); | 663 | err = PTR_ERR(g->bar1); |
664 | goto fail; | 664 | goto fail; |
665 | } | 665 | } |
666 | 666 | ||
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c index 38a4ad10..5578dd8b 100644 --- a/drivers/gpu/nvgpu/pci.c +++ b/drivers/gpu/nvgpu/pci.c | |||
@@ -112,7 +112,7 @@ static int nvgpu_pci_init_support(struct pci_dev *pdev) | |||
112 | pci_resource_len(pdev, 1)); | 112 | pci_resource_len(pdev, 1)); |
113 | if (IS_ERR(g->bar1)) { | 113 | if (IS_ERR(g->bar1)) { |
114 | gk20a_err(dev_from_gk20a(g), "failed to remap gk20a bar1"); | 114 | gk20a_err(dev_from_gk20a(g), "failed to remap gk20a bar1"); |
115 | err = PTR_ERR(g->regs); | 115 | err = PTR_ERR(g->bar1); |
116 | goto fail; | 116 | goto fail; |
117 | } | 117 | } |
118 | 118 | ||