summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-22 16:15:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 21:34:59 -0400
commit6f0fcbc667ca55ed25818467069853e6d750cd7d (patch)
tree26cb9d675fd262b04485df6b8d21bb82a491a2c1 /drivers/gpu/nvgpu/vgpu/vgpu.c
parent001c7c3185d9b087f89f48a41bee27d2d06721f6 (diff)
gpu: nvgpu: Convert logging from dev_*() to nvgpu_*()
Convert a few calls from dev_*() logging to nvgpu_*(). This reduces dependency to Linux specific struct device pointer. JIRA NVGPU-38 Change-Id: Ib51a6b1287db25b7dd4d164aec3ac75fa2801ebf Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1507929 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c7
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 =