Messages in this thread | | | Subject | Re: [PATCH 1/4] devm-helpers: Add resource managed version of work init | From | Krzysztof Kozlowski <> | Date | Mon, 10 May 2021 10:11:36 -0400 |
| |
On 10/05/2021 04:10, Matti Vaittinen wrote: > A few drivers which need a work-queue must cancel work at driver detach. > Some of those implement remove() solely for this purpose. Help drivers to > avoid unnecessary remove and error-branch implementation by adding managed > verision of work initialization. This will also help drivers to avoid > mixing manual and devm based unwinding when other resources are handled by > devm. > > Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> > --- > include/linux/devm-helpers.h | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Best regards, Krzysztof
| |