]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-twl-led.c
selinux: Remove security_ops extern
[linux.git] / drivers / pwm / pwm-twl-led.c
index 83e25d45d640adde070f4fa43526506d2a29334d..b964470025c5e288a6009817ddb683c679868eb6 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pwm.h>
 #include <linux/i2c/twl.h>
@@ -271,6 +272,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 +281,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)
@@ -321,7 +324,7 @@ static int twl_pwmled_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id twl_pwmled_of_match[] = {
+static const struct of_device_id twl_pwmled_of_match[] = {
        { .compatible = "ti,twl4030-pwmled" },
        { .compatible = "ti,twl6030-pwmled" },
        { },
This page took 0.032027 seconds and 4 git commands to generate.