]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/pwm/pwm-twl-led.c
pwm: twl-led: Add .owner to struct pwm_ops
[mirror_ubuntu-bionic-kernel.git] / drivers / pwm / pwm-twl-led.c
index 9dfa0f3eca3032917bc48066e9edf6e3b218eecb..f912e87aed885fb9f5da357783063176210427a4 100644 (file)
@@ -271,6 +271,7 @@ static const struct pwm_ops twl4030_pwmled_ops = {
        .enable = twl4030_pwmled_enable,
        .disable = twl4030_pwmled_disable,
        .config = twl4030_pwmled_config,
+       .owner = THIS_MODULE,
 };
 
 static const struct pwm_ops twl6030_pwmled_ops = {
@@ -279,6 +280,7 @@ static const struct pwm_ops twl6030_pwmled_ops = {
        .config = twl6030_pwmled_config,
        .request = twl6030_pwmled_request,
        .free = twl6030_pwmled_free,
+       .owner = THIS_MODULE,
 };
 
 static int twl_pwmled_probe(struct platform_device *pdev)
@@ -300,6 +302,7 @@ static int twl_pwmled_probe(struct platform_device *pdev)
 
        twl->chip.dev = &pdev->dev;
        twl->chip.base = -1;
+       twl->chip.can_sleep = true;
 
        mutex_init(&twl->mutex);