Re: [PATCH 4/6] gpio: pisosr: Use devm_gpiochip_add_data() to simplify remove path

From: Andy Shevchenko
Date: Tue Mar 07 2023 - 12:49:55 EST


On Tue, Mar 07, 2023 at 10:54:30AM -0600, Andrew Davis wrote:
> Use devm version of gpiochip add function to handle removal for us.
>
> While here update copyright and module author.

...

> - mutex_destroy(&gpio->lock);

You need to wrap this into devm.

--
With Best Regards,
Andy Shevchenko