[PATCH v2] sysfs: handle duplicate removal attempts in sysfs_remove_group()

2013-11-20 Thread Mika Westerberg
Commit bcdde7e221a8 (sysfs: make __sysfs_remove_dir() recursive) changed the behavior so that directory removals will be done recursively. This means that the sysfs group might already be removed if its parent directory has been removed. The current code outputs warnings similar to following log

[PATCH v2] sysfs: handle duplicate removal attempts in sysfs_remove_group()

2013-11-20 Thread Mika Westerberg
Commit bcdde7e221a8 (sysfs: make __sysfs_remove_dir() recursive) changed the behavior so that directory removals will be done recursively. This means that the sysfs group might already be removed if its parent directory has been removed. The current code outputs warnings similar to following log