Re: [PATCH v2] HID: hid-cmedia: use device managed resources
From: Marcus Folkesson
Date: Thu Nov 17 2022 - 07:15:56 EST
On Thu, Nov 17, 2022 at 01:13:04PM +0100, Marcus Folkesson wrote:
> When we do not need to free() any memory in .remove, we can remove
> cmhid_remove as well.
> hid_device_remove() will call hid_hw_stop() as default .remove function
> if no function is specified.
>
> Signed-off-by: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>
> ---
v2:
- return ret instead of 0 in probe.
> drivers/hid/hid-cmedia.c | 27 +++++----------------------
> 1 file changed, 5 insertions(+), 22 deletions(-)
>
Attachment:
signature.asc
Description: PGP signature