From 83c80dc5358270a665666ea5b9ddd24351d86354 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 31 Mar 2013 11:15:15 +0800 Subject: [PATCH] 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 Signed-off-by: Thierry Reding --- 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) -- 2.39.5