summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-11-08 13:42:40 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-11-08 13:42:40 -0800
commitabf6c39796f9cccd0d258d05f2fa39a8c77eabc2 (patch)
tree6a3816b2000f9ee40f236b6d41ba9da7129ffda4
parent0689acfad34e4f60a25e354af2835e1569da81ba (diff)
parent24906a41eecb73d51974ade0847c21e429beec60 (diff)
downloadlinux-abf6c39796f9cccd0d258d05f2fa39a8c77eabc2.tar.bz2
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.c1
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,
static const struct pwm_ops iproc_pwm_ops = {
.apply = iproc_pwmc_apply,
.get_state = iproc_pwmc_get_state,
+ .owner = THIS_MODULE,
};
static int iproc_pwmc_probe(struct platform_device *pdev)