Linux Kernels

pwm: atmel-tcb: Add .owner to struct pwm_ops

This change “pwm: atmel-tcb: Add .owner to struct pwm_ops” (commit 83c80dc) in Linux kernel is authored by Axel Lin <axel.lin [at] ingics.com> on Sun Mar 31 11:15:15 2013 +0800.

Description of "pwm: atmel-tcb: Add .owner to struct pwm_ops"

The change “pwm: atmel-tcb: Add .owner to struct pwm_ops” introduces changes as follows.

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>

Linux kernel releases containing commit 83c80dc

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "pwm: atmel-tcb: Add .owner to struct pwm_ops"

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/pwm/pwm-atmel-tcb.c | 1 +
 1 file changed, 1 insertion(+)
 
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)

The commit for this change in Linux stable tree is 83c80dc (patch).

Last modified: 2020/01/11 09:52