diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c index 5035bb99..d42afb4c 100644 --- a/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c +++ b/drivers/gpu/nvgpu/gp10b/gp10b_sysfs.c | |||
@@ -32,7 +32,7 @@ static ssize_t ecc_enable_store(struct device *dev, | |||
32 | err = g->ops.pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd | 32 | err = g->ops.pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd |
33 | (g, ecc_mask); | 33 | (g, ecc_mask); |
34 | if (err) | 34 | if (err) |
35 | dev_err(dev, "ECC override did not happen\n"); | 35 | nvgpu_err(g, "ECC override did not happen\n"); |
36 | } else | 36 | } else |
37 | return -EINVAL; | 37 | return -EINVAL; |
38 | return count; | 38 | return count; |
@@ -51,11 +51,12 @@ static DEVICE_ATTR(ecc_enable, ROOTRW, ecc_enable_read, ecc_enable_store); | |||
51 | 51 | ||
52 | void gp10b_create_sysfs(struct device *dev) | 52 | void gp10b_create_sysfs(struct device *dev) |
53 | { | 53 | { |
54 | struct gk20a *g = get_gk20a(dev); | ||
54 | int error = 0; | 55 | int error = 0; |
55 | 56 | ||
56 | error |= device_create_file(dev, &dev_attr_ecc_enable); | 57 | error |= device_create_file(dev, &dev_attr_ecc_enable); |
57 | if (error) | 58 | if (error) |
58 | dev_err(dev, "Failed to create sysfs attributes!\n"); | 59 | nvgpu_err(g, "Failed to create sysfs attributes!\n"); |
59 | } | 60 | } |
60 | 61 | ||
61 | void gp10b_remove_sysfs(struct device *dev) | 62 | void gp10b_remove_sysfs(struct device *dev) |