diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-10-22 06:50:55 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:58 -0400 |
commit | 200f63ce7b48561213dd58fac4f9d66e586dab2c (patch) | |
tree | 54086b4e5900556ff547ec40bb3ae7aec8d78413 /drivers/gpu | |
parent | 7bb9fe2748d3324915108af85e6014da367071f6 (diff) |
gpu: nvgpu: use correct parent for sysfs remove
sysfs_remove_link's first argument expects the kobj of the directory
where the link resides, not the kobj of the link itself.
Change-Id: I89f7d681135e8eb0ff16406271cd19bf9c04f185
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/592111
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index 52a34086..1f32ac6d 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -658,7 +658,7 @@ void gk20a_remove_sysfs(struct device *dev) | |||
658 | device_remove_file(dev, &dev_attr_tpc_fs_mask); | 658 | device_remove_file(dev, &dev_attr_tpc_fs_mask); |
659 | 659 | ||
660 | if (g->host1x_dev && (dev->parent != &g->host1x_dev->dev)) | 660 | if (g->host1x_dev && (dev->parent != &g->host1x_dev->dev)) |
661 | sysfs_remove_link(&dev->kobj, dev_name(dev)); | 661 | sysfs_remove_link(&g->host1x_dev->dev.kobj, dev_name(dev)); |
662 | } | 662 | } |
663 | 663 | ||
664 | void gk20a_create_sysfs(struct platform_device *dev) | 664 | void gk20a_create_sysfs(struct platform_device *dev) |