platform/x86: gpd pocket fan: Clean-up by using managed work init
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Tue, 23 Mar 2021 13:57:41 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 14:22:40 +0000 (15:22 +0100)
commitb82a7b018b93d282d0f1a41a854ca3d071e02759
treec923c4075052577341ed49a7813e72ced92afe9c
parent96dc2b31abd0ed8a2a59a6672d4f16e4718d3701
platform/x86: gpd pocket fan: Clean-up by using managed work init

Few drivers implement remove call-back only for ensuring a delayed
work gets cancelled prior driver removal. Clean-up these by switching
to use devm_delayed_work_autocancel() instead.

This change is compile-tested only. All testing is appreciated.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/aa25a6781ba016772b045cd6e630da8c559a665d.1616506559.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/gpd-pocket-fan.c