diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index 64d9d917..a857b838 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -533,6 +533,8 @@ static int ecc_stat_create(struct device *dev, | |||
533 | "gpc0_tpc%d_%s", | 533 | "gpc0_tpc%d_%s", |
534 | hw_unit, | 534 | hw_unit, |
535 | ecc_stat_name); | 535 | ecc_stat_name); |
536 | |||
537 | sysfs_attr_init(&dev_attr_array[hw_unit].attr); | ||
536 | dev_attr_array[hw_unit].attr.name = ecc_stat->names[hw_unit]; | 538 | dev_attr_array[hw_unit].attr.name = ecc_stat->names[hw_unit]; |
537 | dev_attr_array[hw_unit].attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); | 539 | dev_attr_array[hw_unit].attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); |
538 | dev_attr_array[hw_unit].show = ecc_stat_show; | 540 | dev_attr_array[hw_unit].show = ecc_stat_show; |