mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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>
This commit is contained in:
committed by
Dan Willemsen
parent
7bb9fe2748
commit
200f63ce7b
@@ -658,7 +658,7 @@ void gk20a_remove_sysfs(struct device *dev)
|
||||
device_remove_file(dev, &dev_attr_tpc_fs_mask);
|
||||
|
||||
if (g->host1x_dev && (dev->parent != &g->host1x_dev->dev))
|
||||
sysfs_remove_link(&dev->kobj, dev_name(dev));
|
||||
sysfs_remove_link(&g->host1x_dev->dev.kobj, dev_name(dev));
|
||||
}
|
||||
|
||||
void gk20a_create_sysfs(struct platform_device *dev)
|
||||
|
||||
Reference in New Issue
Block a user