Skip to content
Snippets Groups Projects
Commit 39fd3f99 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

pwm: fsl-ftm: set pwm_chip can_sleep flag


The implementation of .config(), .enable() and .disable() operations in this
driver may sleep, thus set pwm_chip can_sleep flag.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 54b02347
No related branches found
No related tags found
No related merge requests found
......@@ -454,6 +454,7 @@ static int fsl_pwm_probe(struct platform_device *pdev)
fpc->chip.of_pwm_n_cells = 3;
fpc->chip.base = -1;
fpc->chip.npwm = 8;
fpc->chip.can_sleep = true;
ret = pwmchip_add(&fpc->chip);
if (ret < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment