pwm: ab8500: Add .owner to struct pwm_ops
authorAxel Lin <axel.lin@ingics.com>
Sun, 31 Mar 2013 03:14:02 +0000 (11:14 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Tue, 2 Apr 2013 09:29:11 +0000 (11:29 +0200)
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/pwm-ab8500.c

index 3beb2b52bd2ec53ae1753b60e5571e2c7d50c33e..1d07a6f9937541f46de1afc07962974498f69cdc 100644 (file)
@@ -88,6 +88,7 @@ static const struct pwm_ops ab8500_pwm_ops = {
        .config = ab8500_pwm_config,
        .enable = ab8500_pwm_enable,
        .disable = ab8500_pwm_disable,
+       .owner = THIS_MODULE,
 };
 
 static int ab8500_pwm_probe(struct platform_device *pdev)