]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pwm/pwm-atmel.c
clockevent: sun4i: Fix race condition in the probe code
[karo-tx-linux.git] / drivers / pwm / pwm-atmel.c
index 0adc952cc4ef5e95d8a5bd0fa0a680663150b7e8..6e700a541ca32ded0d5881842214a53d87ffe0f6 100644 (file)
@@ -357,6 +357,7 @@ static int atmel_pwm_probe(struct platform_device *pdev)
 
        atmel_pwm->chip.base = -1;
        atmel_pwm->chip.npwm = 4;
+       atmel_pwm->chip.can_sleep = true;
        atmel_pwm->config = data->config;
 
        ret = pwmchip_add(&atmel_pwm->chip);