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:
@@ -239,6 +239,7 @@ MODULE_DEVICE_TABLE(of, tegra_pwm_of_match);
|
||||
static struct platform_driver tegra_pwm_driver = {
|
||||
.driver = {
|
||||
.name = "tegra-pwm",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = tegra_pwm_of_match,
|
||||
},
|
||||
.probe = tegra_pwm_probe,
|
||||
|
||||
Reference in New Issue
Block a user