projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa0abee
)
pwm: atmel-tcb: Add .owner to struct pwm_ops
author
Axel Lin
<axel.lin@ingics.com>
Sun, 31 Mar 2013 03:15:15 +0000
(11:15 +0800)
committer
Thierry Reding
<thierry.reding@avionic-design.de>
Tue, 2 Apr 2013 09:29:22 +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-atmel-tcb.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-atmel-tcb.c
b/drivers/pwm/pwm-atmel-tcb.c
index 16cb53092857789ca9cf6f7b726255ed6f6ab1fa..0a7b6582edb109f58ce1ce26189d37600fde1173 100644
(file)
--- 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 = {
.set_polarity = atmel_tcb_pwm_set_polarity,
.enable = atmel_tcb_pwm_enable,
.disable = atmel_tcb_pwm_disable,
+ .owner = THIS_MODULE,
};
static int atmel_tcb_pwm_probe(struct platform_device *pdev)