summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pwm/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pwm/core.c')
-rw-r--r--kernel/drivers/pwm/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/drivers/pwm/core.c b/kernel/drivers/pwm/core.c
index d24ca5f28..ec84ff8ad 100644
--- a/kernel/drivers/pwm/core.c
+++ b/kernel/drivers/pwm/core.c
@@ -321,6 +321,8 @@ int pwmchip_remove(struct pwm_chip *chip)
unsigned int i;
int ret = 0;
+ pwmchip_sysfs_unexport_children(chip);
+
mutex_lock(&pwm_lock);
for (i = 0; i < chip->npwm; i++) {
@@ -889,7 +891,7 @@ EXPORT_SYMBOL_GPL(devm_pwm_put);
*/
bool pwm_can_sleep(struct pwm_device *pwm)
{
- return pwm->chip->can_sleep;
+ return true;
}
EXPORT_SYMBOL_GPL(pwm_can_sleep);