pwm: Fill in missing .owner fields
Some drivers don't set the .owner fields of the struct device_driver or struct pwm_ops, which causes the module usage count to become wrong. Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
@@ -434,6 +434,7 @@ MODULE_DEVICE_TABLE(of, atmel_tcb_pwm_dt_ids);
|
||||
static struct platform_driver atmel_tcb_pwm_driver = {
|
||||
.driver = {
|
||||
.name = "atmel-tcb-pwm",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = atmel_tcb_pwm_dt_ids,
|
||||
},
|
||||
.probe = atmel_tcb_pwm_probe,
|
||||
|
Reference in New Issue
Block a user