summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-pca9685.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-06-12 13:18:29 +0200
committerThierry Reding <thierry.reding@gmail.com>2013-06-12 13:18:29 +0200
commit3dd0a909479c1d372341d749b4ff94cd638b57da (patch)
tree062b18923862bcc313671a86a38a9950620380f3 /drivers/pwm/pwm-pca9685.c
parent88b613e6234def882b0b601bf831bf89af2e27f0 (diff)
downloadlinux-3dd0a909479c1d372341d749b4ff94cd638b57da.tar.bz2
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-pca9685.c')
-rw-r--r--drivers/pwm/pwm-pca9685.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-pca9685.c b/drivers/pwm/pwm-pca9685.c
index 2afc9043550a..c9f9e65415f3 100644
--- a/drivers/pwm/pwm-pca9685.c
+++ b/drivers/pwm/pwm-pca9685.c
@@ -199,6 +199,7 @@ static const struct pwm_ops pca9685_pwm_ops = {
.config = pca9685_pwm_config,
.request = pca9685_pwm_request,
.free = pca9685_pwm_free,
+ .owner = THIS_MODULE,
};
static struct regmap_config pca9685_regmap_i2c_config = {