diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index d41c0abb..da77dc19 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -268,7 +268,7 @@ static int vgpu_init_support(struct platform_device *pdev) | |||
268 | int err = 0; | 268 | int err = 0; |
269 | 269 | ||
270 | if (!r) { | 270 | if (!r) { |
271 | dev_err(dev_from_gk20a(g), "faield to get gk20a bar1\n"); | 271 | nvgpu_err(g, "failed to get gk20a bar1"); |
272 | err = -ENXIO; | 272 | err = -ENXIO; |
273 | goto fail; | 273 | goto fail; |
274 | } | 274 | } |
@@ -276,8 +276,7 @@ static int vgpu_init_support(struct platform_device *pdev) | |||
276 | if (r->name && !strcmp(r->name, "/vgpu")) { | 276 | if (r->name && !strcmp(r->name, "/vgpu")) { |
277 | regs = devm_ioremap_resource(&pdev->dev, r); | 277 | regs = devm_ioremap_resource(&pdev->dev, r); |
278 | if (IS_ERR(regs)) { | 278 | if (IS_ERR(regs)) { |
279 | dev_err(dev_from_gk20a(g), | 279 | nvgpu_err(g, "failed to remap gk20a bar1"); |
280 | "failed to remap gk20a regs\n"); | ||
281 | err = PTR_ERR(regs); | 280 | err = PTR_ERR(regs); |
282 | goto fail; | 281 | goto fail; |
283 | } | 282 | } |
@@ -292,7 +291,7 @@ static int vgpu_init_support(struct platform_device *pdev) | |||
292 | 291 | ||
293 | g->dbg_regops_tmp_buf = nvgpu_kzalloc(g, SZ_4K); | 292 | g->dbg_regops_tmp_buf = nvgpu_kzalloc(g, SZ_4K); |
294 | if (!g->dbg_regops_tmp_buf) { | 293 | if (!g->dbg_regops_tmp_buf) { |
295 | dev_err(g->dev, "couldn't allocate regops tmp buf"); | 294 | nvgpu_err(g, "couldn't allocate regops tmp buf"); |
296 | return -ENOMEM; | 295 | return -ENOMEM; |
297 | } | 296 | } |
298 | g->dbg_regops_tmp_buf_ops = | 297 | g->dbg_regops_tmp_buf_ops = |