[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZAd35D4C96MP5Qrm@smile.fi.intel.com>
Date: Tue, 7 Mar 2023 19:44:04 +0200
From: Andy Shevchenko <andy@...nel.org>
To: Andrew Davis <afd@...com>
Cc: Peter Tyser <ptyser@...-inc.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/6] gpio: pisosr: Use devm_gpiochip_add_data() to
simplify remove path
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
Powered by blists - more mailing lists