mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: gv11b: Use new error macros
gk20a_err() and gk20a_warn() require a struct device pointer, which is not portable across operating systems. The new nvgpu_err() and nvgpu_warn() macros take struct gk20a pointer. Convert the last remaining user of old macros to new ones. JIRA NVGPU-16 Change-Id: Ib665cfb395fe46ac988ed14d67adef885098e524 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1462968 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
7b5b4fc84f
commit
6dabea9882
@@ -81,8 +81,7 @@ u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base)
|
||||
if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) == 2)
|
||||
return base * 2;
|
||||
else if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) != 1) {
|
||||
gk20a_err(dev_from_gk20a(g),
|
||||
"Invalid number of active ltcs: %08x\n", val);
|
||||
nvgpu_err(g, "Invalid number of active ltcs: %08x\n", val);
|
||||
}
|
||||
return base;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user