Re: [PATCH 04/10] platform/x86: toshiba_acpi: use device-managed functions for input device

2021-03-29 Thread Jonathan Cameron
On Wed, 24 Mar 2021 14:55:42 +0200 Alexandru Ardelean wrote: > This change uses device managed functions to handle the deregistration of > the keyboard resources when the refcount of the parent device goes to zero. > > For the input device devm_input_allocate_device() must be used, and after >

[PATCH 04/10] platform/x86: toshiba_acpi: use device-managed functions for input device

2021-03-24 Thread Alexandru Ardelean
This change uses device managed functions to handle the deregistration of the keyboard resources when the refcount of the parent device goes to zero. For the input device devm_input_allocate_device() must be used, and after that it will be bound also for auto-deregistration when