Re: [PATCH] Input: applespi - add missed input_unregister_device

From: Dmitry Torokhov
Date: Thu May 07 2020 - 12:00:17 EST


Hi Chuhong,

On Thu, May 07, 2020 at 11:10:41PM +0800, Chuhong Yuan wrote:
> This driver calls input_register_device() in probe, but misses
> input_unregister_device() in probe failure and remove.
> Add the missed function calls to fix it.

The input device in question is devm-managed and therefore does not need
explicit unregistering.

Thanks.

--
Dmitry