diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index f9b97d97..25dcd8bb 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -169,10 +169,10 @@ static int vgpu_init_support(struct platform_device *dev) | |||
169 | goto fail; | 169 | goto fail; |
170 | } | 170 | } |
171 | 171 | ||
172 | g->bar1 = devm_request_and_ioremap(&dev->dev, r); | 172 | g->bar1 = devm_ioremap_resource(&dev->dev, r); |
173 | if (!g->bar1) { | 173 | if (IS_ERR(g->bar1)) { |
174 | dev_err(dev_from_gk20a(g), "failed to remap gk20a bar1\n"); | 174 | dev_err(dev_from_gk20a(g), "failed to remap gk20a bar1\n"); |
175 | err = -ENXIO; | 175 | err = PTR_ERR(g->bar1); |
176 | goto fail; | 176 | goto fail; |
177 | } | 177 | } |
178 | 178 | ||