diff options
author | sumitg <sumitg@nvidia.com> | 2019-03-07 09:30:24 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-06-11 14:32:02 -0400 |
commit | fadfa3289fdd6a0f9805fd97fd608f4b0254463f (patch) | |
tree | 1af8c97e3037449bf36491b4817d89f38792acc5 /drivers/gpu/nvgpu | |
parent | fea9e054547fc0408eb6c5ca893e5b112e19397b (diff) |
gpu: nvgpu: vgpu: correct param to sysfs_attr_init
Pass correct attr parameter to sysfs_attr_init().
This fixes the compilation error on enabling debug
lock alloc.
error: ‘struct device_attribute’ has no member named ‘key’
Bug 200464909
Bug 2604007
Change-Id: Ia0d2672b1c8fe9eb4807b4809892dcdc0cff2669
Signed-off-by: sumitg <sumitg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2034954
(cherry picked from commit daa4d7e42b3dcb0dc590b1b3c3356259ee0423d6)
Reviewed-on: https://git-master.nvidia.com/r/2132154
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Phoenix Jung <pjung@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/vgpu/sysfs_vgpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/sysfs_vgpu.c b/drivers/gpu/nvgpu/os/linux/vgpu/sysfs_vgpu.c index 30ca7f53..ade5d82a 100644 --- a/drivers/gpu/nvgpu/os/linux/vgpu/sysfs_vgpu.c +++ b/drivers/gpu/nvgpu/os/linux/vgpu/sysfs_vgpu.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -92,7 +92,7 @@ static int vgpu_create_ecc_sysfs(struct device *dev) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | for (i = 0; i < count; i++) { | 94 | for (i = 0; i < count; i++) { |
95 | sysfs_attr_init(&attrs[i].attr); | 95 | sysfs_attr_init(&attrs[i].attr.attr); |
96 | attrs[i].attr.attr.name = stats[i].name; | 96 | attrs[i].attr.attr.name = stats[i].name; |
97 | attrs[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); | 97 | attrs[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); |
98 | attrs[i].attr.show = vgpu_ecc_stat_show; | 98 | attrs[i].attr.show = vgpu_ecc_stat_show; |