From: Axel Lin Date: Sun, 31 Mar 2013 03:15:15 +0000 (+0800) Subject: pwm: atmel-tcb: Add .owner to struct pwm_ops X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83c80dc5358270a665666ea5b9ddd24351d86354;p=linux-beck.git 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 --- 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)