Re: [PATCH 08/10] platform/x86: toshiba_acpi: use device-managed for wwan_rfkill management

2021-03-29 Thread Jonathan Cameron
On Wed, 24 Mar 2021 14:55:46 +0200 Alexandru Ardelean wrote: > This change converts the wwan_rfkill object to be free'd automatically when > the parent refcount goes to zero. > There are 2 cleanup operations required: rfkill_unregister() and > rfkill_destroy(). Since they don't have any devm_

[PATCH 08/10] platform/x86: toshiba_acpi: use device-managed for wwan_rfkill management

2021-03-24 Thread Alexandru Ardelean
This change converts the wwan_rfkill object to be free'd automatically when the parent refcount goes to zero. There are 2 cleanup operations required: rfkill_unregister() and rfkill_destroy(). Since they don't have any devm_ variants, they are hooked via devm_add_action_or_reset(). The main