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-bfin.c | |
parent | pwm: add pca9685 driver (diff) | |
download | linux-3dd0a909479c1d372341d749b4ff94cd638b57da.tar.xz linux-3dd0a909479c1d372341d749b4ff94cd638b57da.zip |
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-bfin.c')
-rw-r--r-- | drivers/pwm/pwm-bfin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-bfin.c b/drivers/pwm/pwm-bfin.c index 7631ef194de7..9985d830e554 100644 --- a/drivers/pwm/pwm-bfin.c +++ b/drivers/pwm/pwm-bfin.c @@ -149,6 +149,7 @@ static int bfin_pwm_remove(struct platform_device *pdev) static struct platform_driver bfin_pwm_driver = { .driver = { .name = "bfin-pwm", + .owner = THIS_MODULE, }, .probe = bfin_pwm_probe, .remove = bfin_pwm_remove, |