diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ecc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c b/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c index 0962e247..d2986d7d 100644 --- a/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c +++ b/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c | |||
@@ -40,7 +40,7 @@ int nvgpu_ecc_sysfs_init(struct gk20a *g) | |||
40 | ecc->stats_count); | 40 | ecc->stats_count); |
41 | break; | 41 | break; |
42 | } | 42 | } |
43 | sysfs_attr_init(&attr[i].attr); | 43 | sysfs_attr_init(&attr[i].attr.attr); |
44 | attr[i].attr.attr.name = stat->name; | 44 | attr[i].attr.attr.name = stat->name; |
45 | attr[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); | 45 | attr[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); |
46 | attr[i].var = &stat->counter; | 46 | attr[i].var = &stat->counter; |