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

From: Andrew Davis
Date: Wed Mar 08 2023 - 10:51:08 EST


On 3/8/23 4:32 AM, Bartosz Golaszewski wrote:
On Wed, Mar 8, 2023 at 11:24 AM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

On Tue, Mar 7, 2023 at 5:54 PM Andrew Davis <afd@xxxxxx> wrote:

Use devm version of gpiochip add function to handle removal for us.

Signed-off-by: Andrew Davis <afd@xxxxxx>
---
drivers/gpio/gpio-sch311x.c | 25 ++-----------------------
1 file changed, 2 insertions(+), 23 deletions(-)


Applied, thanks!

Bart

I see there's v2 out, backing it out then.


Looks like I missed something that kernel test robot found, so there
will be a v3.

Andrew