diff options
| author | Axel Lin <[email protected]> | 2013-03-31 03:15:15 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2013-04-02 09:29:22 +0000 |
| commit | 83c80dc5358270a665666ea5b9ddd24351d86354 (patch) | |
| tree | 46c31e73ec0b3b501d8e82d57b936c36b59e7963 /drivers/pwm/pwm-atmel-tcb.c | |
| parent | pwm: ab8500: Add .owner to struct pwm_ops (diff) | |
| download | kernel-83c80dc5358270a665666ea5b9ddd24351d86354.tar.gz kernel-83c80dc5358270a665666ea5b9ddd24351d86354.zip | |
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-atmel-tcb.c')
| -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 = { .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) |
