From 34e9ab1f26155ae72521be80cf496bbc0573f03e Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Fri, 25 May 2018 17:02:33 +0530 Subject: gpu: nvgpu: remove ldiv_slowdown_factor sysfs node ldiv_slowdown_factor sysfs node is added with change f9e55fba but it didn't update nvgpu_remove_sysfs() to remove it. This results in EEXIST error for modprobe-rmmod-modprobe sequence of nvgpu driver. Bug 1987855 Change-Id: I4360028ba75435f3e144be23f6d9f42a81dcb94b Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1730538 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/nvgpu/common/linux/sysfs.c b/drivers/gpu/nvgpu/common/linux/sysfs.c index 7a887beb..e5995bb8 100644 --- a/drivers/gpu/nvgpu/common/linux/sysfs.c +++ b/drivers/gpu/nvgpu/common/linux/sysfs.c @@ -1110,6 +1110,7 @@ void nvgpu_remove_sysfs(struct device *dev) device_remove_file(dev, &dev_attr_elpg_enable); device_remove_file(dev, &dev_attr_mscg_enable); device_remove_file(dev, &dev_attr_emc3d_ratio); + device_remove_file(dev, &dev_attr_ldiv_slowdown_factor); device_remove_file(dev, &dev_attr_fmax_at_vmin_safe); -- cgit v1.2.2