summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-31 11:14:02 +0800
committerThierry Reding <thierry.reding@avionic-design.de>2013-04-02 11:29:11 +0200
commitfa0abee9b89e3a0bab207823bd16372de53c3896 (patch)
treeb9e8e7cf92e124f26f9f7bb369ee8e53e7720f1e /drivers
parent563861cd633ae52932843477bb6ca3f1c9e2f78b (diff)
downloadlinux-fa0abee9b89e3a0bab207823bd16372de53c3896.tar.bz2
pwm: ab8500: Add .owner to struct pwm_ops
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-ab8500.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c
index 3beb2b52bd2e..1d07a6f99375 100644
--- a/drivers/pwm/pwm-ab8500.c
+++ b/drivers/pwm/pwm-ab8500.c
@@ -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)