Message ID | 20240820-sysfs_fix-v2-1-a9441487077e@quicinc.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3a8839bbb86da7968a792123ed2296d063871a52 |
Headers | show |
Series | [v2] usb: core: sysfs: Unmerge @usb3_hardware_lpm_attr_group in remove_power_attributes() | expand |
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index d83231d6736a..61b6d978892c 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c @@ -670,6 +670,7 @@ static int add_power_attributes(struct device *dev) static void remove_power_attributes(struct device *dev) { + sysfs_unmerge_group(&dev->kobj, &usb3_hardware_lpm_attr_group); sysfs_unmerge_group(&dev->kobj, &usb2_hardware_lpm_attr_group); sysfs_unmerge_group(&dev->kobj, &power_attr_group); }