diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-03-30 23:15:15 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-02 05:29:22 -0400 |
commit | 83c80dc5358270a665666ea5b9ddd24351d86354 (patch) | |
tree | 46c31e73ec0b3b501d8e82d57b936c36b59e7963 /drivers/pwm | |
parent | fa0abee9b89e3a0bab207823bd16372de53c3896 (diff) |
pwm: atmel-tcb: 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-atmel-tcb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c index 16cb53092857..0a7b6582edb1 100644 --- a/drivers/pwm/pwm-atmel-tcb.c +++ b/drivers/pwm/pwm-atmel-tcb.c | |||
@@ -358,6 +358,7 @@ static const struct pwm_ops atmel_tcb_pwm_ops = { | |||
358 | .set_polarity = atmel_tcb_pwm_set_polarity, | 358 | .set_polarity = atmel_tcb_pwm_set_polarity, |
359 | .enable = atmel_tcb_pwm_enable, | 359 | .enable = atmel_tcb_pwm_enable, |
360 | .disable = atmel_tcb_pwm_disable, | 360 | .disable = atmel_tcb_pwm_disable, |
361 | .owner = THIS_MODULE, | ||
361 | }; | 362 | }; |
362 | 363 | ||
363 | static int atmel_tcb_pwm_probe(struct platform_device *pdev) | 364 | static int atmel_tcb_pwm_probe(struct platform_device *pdev) |