Skip to content
Commit 0733424c authored by David Hsu's avatar David Hsu Committed by Thierry Reding
Browse files

pwm: Unexport children before chip removal



Exported pwm channels aren't removed before the pwmchip and are
leaked. This results in invalid sysfs files. This fix removes
all exported pwm channels before chip removal.

Signed-off-by: default avatarDavid Hsu <davidhsu@google.com>
Fixes: 76abbdde

 ("pwm: Add sysfs interface")
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 29b4817d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment