From 6f0fcbc667ca55ed25818467069853e6d750cd7d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 22 Jun 2017 13:15:17 -0700 Subject: 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 Reviewed-on: https://git-master/r/1507929 GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/vgpu/css_vgpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/css_vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/css_vgpu.c b/drivers/gpu/nvgpu/vgpu/css_vgpu.c index cca8766b..d18ed100 100644 --- a/drivers/gpu/nvgpu/vgpu/css_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/css_vgpu.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -46,7 +46,7 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr) err = of_parse_phandle_with_fixed_args(np, "mempool-css", 1, 0, &args); if (err) { - dev_info(dev_from_gk20a(g), "dt missing mempool-css\n"); + nvgpu_info(g, "dt missing mempool-css"); goto fail; } @@ -54,15 +54,15 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr) mempool = args.args[0]; css_cookie = tegra_hv_mempool_reserve(hv_np, mempool); if (IS_ERR(css_cookie)) { - dev_info(dev_from_gk20a(g), - "mempool %u reserve failed\n", mempool); + nvgpu_info(g, + "mempool %u reserve failed", mempool); err = -EINVAL; goto fail; } /* Make sure buffer size is large enough */ if (css_cookie->size < CSS_MIN_HW_SNAPSHOT_SIZE) { - dev_info(dev_from_gk20a(g), "mempool size %lld too small\n", + nvgpu_info(g, "mempool size %lld too small", css_cookie->size); err = -ENOMEM; goto fail; @@ -74,7 +74,7 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr) buf = ioremap_cache(css_cookie->ipa, css_cookie->size); #endif if (!buf) { - dev_info(dev_from_gk20a(g), "ioremap_cache failed\n"); + nvgpu_info(g, "ioremap_cache failed"); err = -EINVAL; goto fail; } -- cgit v1.2.2