mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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
This commit is contained in:
committed by
mobile promotions
parent
001c7c3185
commit
6f0fcbc667
@@ -165,9 +165,9 @@ int nvgpu_probe(struct gk20a *g,
|
||||
err = platform->probe(g->dev);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
dev_info(g->dev, "platform probe failed");
|
||||
nvgpu_info(g, "platform probe failed");
|
||||
else
|
||||
dev_err(g->dev, "platform probe failed");
|
||||
nvgpu_err(g, "platform probe failed");
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ int nvgpu_probe(struct gk20a *g,
|
||||
if (platform->late_probe) {
|
||||
err = platform->late_probe(g->dev);
|
||||
if (err) {
|
||||
dev_err(g->dev, "late probe failed");
|
||||
nvgpu_err(g, "late probe failed");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
@@ -196,7 +196,7 @@ int nvgpu_probe(struct gk20a *g,
|
||||
|
||||
g->dbg_regops_tmp_buf = nvgpu_kzalloc(g, SZ_4K);
|
||||
if (!g->dbg_regops_tmp_buf) {
|
||||
dev_err(g->dev, "couldn't allocate regops tmp buf");
|
||||
nvgpu_err(g, "couldn't allocate regops tmp buf");
|
||||
return -ENOMEM;
|
||||
}
|
||||
g->dbg_regops_tmp_buf_ops =
|
||||
|
||||
Reference in New Issue
Block a user