projects/linux·commit abf6c397

Merge tag 'pwm/for-5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm

abf6c397 · Linus Torvalds <[email protected]> · 2019-11-08 13:42:40 -08:00

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
Commit
abf6c39796f9cccd0d258d05f2fa39a8c77eabc2
Parents
0689acfa · 24906a41

Merge commit. Changes below are compared with the first parent: 0689acfa.

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/pwm/pwm-bcm-iproc.cmodified+1−0View file

drivers/pwm/pwm-bcm-iproc.c

View file
diff --git a/drivers/pwm/pwm-bcm-iproc.c b/drivers/pwm/pwm-bcm-iproc.c
index 56c38cf..1f829ed 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)