Skip to content
Commit 4b06152a authored by David Hsu's avatar David Hsu Committed by Greg Kroah-Hartman
Browse files

pwm: Unexport children before chip removal



commit 0733424c upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 353bbacf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment