diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-03-30 23:14:02 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-02 05:29:11 -0400 |
commit | fa0abee9b89e3a0bab207823bd16372de53c3896 (patch) | |
tree | b9e8e7cf92e124f26f9f7bb369ee8e53e7720f1e /drivers/pwm | |
parent | 563861cd633ae52932843477bb6ca3f1c9e2f78b (diff) |
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/pwm')
-rw-r--r-- | drivers/pwm/pwm-ab8500.c | 1 |
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 = { | |||
88 | .config = ab8500_pwm_config, | 88 | .config = ab8500_pwm_config, |
89 | .enable = ab8500_pwm_enable, | 89 | .enable = ab8500_pwm_enable, |
90 | .disable = ab8500_pwm_disable, | 90 | .disable = ab8500_pwm_disable, |
91 | .owner = THIS_MODULE, | ||
91 | }; | 92 | }; |
92 | 93 | ||
93 | static int ab8500_pwm_probe(struct platform_device *pdev) | 94 | static int ab8500_pwm_probe(struct platform_device *pdev) |