diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-06-12 13:18:29 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-06-12 13:18:29 +0200 |
commit | 3dd0a909479c1d372341d749b4ff94cd638b57da (patch) | |
tree | 062b18923862bcc313671a86a38a9950620380f3 /drivers/pwm/pwm-spear.c | |
parent | 88b613e6234def882b0b601bf831bf89af2e27f0 (diff) |
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>
Diffstat (limited to 'drivers/pwm/pwm-spear.c')
-rw-r--r-- | drivers/pwm/pwm-spear.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index 6d99e2cbdc73..a54d21401431 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/pwm-spear.c @@ -259,6 +259,7 @@ MODULE_DEVICE_TABLE(of, spear_pwm_of_match); static struct platform_driver spear_pwm_driver = { .driver = { .name = "spear-pwm", + .owner = THIS_MODULE, .of_match_table = spear_pwm_of_match, }, .probe = spear_pwm_probe, |