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:
Konsta Holtta
2014-10-22 13:50:55 +03:00
committed by Dan Willemsen
parent 7bb9fe2748
commit 200f63ce7b

View File

@@ -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)