]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: bcm-iproc: Prevent unloading the driver module while in use
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 17 Oct 2019 19:22:18 +0000 (21:22 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 8 Nov 2019 17:38:06 +0000 (18:38 +0100)
commit93f1ff07f6c0960fbc9575ae5c296ea9e8bab4c4
treedf8762d9dfebd5c45e00bbf3d272a0052e70bccf
parentbd5e07695cddc50c2684b9afca3517e30b3f275a
pwm: bcm-iproc: Prevent unloading the driver module while in use

The owner member of struct pwm_ops must be set to THIS_MODULE to
increase the reference count of the module such that the module cannot
be removed while its code is in use.

Fixes: 84e0495bef60 ("pwm: Add support for Broadcom iProc PWM controller")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-bcm-iproc.c