diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-08 16:42:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-08 16:42:40 -0500 |
commit | abf6c39796f9cccd0d258d05f2fa39a8c77eabc2 (patch) | |
tree | 6a3816b2000f9ee40f236b6d41ba9da7129ffda4 | |
parent | 0689acfad34e4f60a25e354af2835e1569da81ba (diff) | |
parent | 24906a41eecb73d51974ade0847c21e429beec60 (diff) |
Merge tag 'pwm/for-5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm fix from Thierry Reding:
"One more fix to keep a reference to the driver's module as long as
there are users of the PWM exposed by the driver"
* tag 'pwm/for-5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
pwm: bcm-iproc: Prevent unloading the driver module while in use
-rw-r--r-- | drivers/pwm/pwm-bcm-iproc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-bcm-iproc.c b/drivers/pwm/pwm-bcm-iproc.c index 56c38cfae92c..1f829edd8ee7 100644 --- a/drivers/pwm/pwm-bcm-iproc.c +++ b/drivers/pwm/pwm-bcm-iproc.c | |||
@@ -187,6 +187,7 @@ static int iproc_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, | |||
187 | static const struct pwm_ops iproc_pwm_ops = { | 187 | static const struct pwm_ops iproc_pwm_ops = { |
188 | .apply = iproc_pwmc_apply, | 188 | .apply = iproc_pwmc_apply, |
189 | .get_state = iproc_pwmc_get_state, | 189 | .get_state = iproc_pwmc_get_state, |
190 | .owner = THIS_MODULE, | ||
190 | }; | 191 | }; |
191 | 192 | ||
192 | static int iproc_pwmc_probe(struct platform_device *pdev) | 193 | static int iproc_pwmc_probe(struct platform_device *pdev) |