Re: [PATCH v2] gpio: mockup: remove gpio debugfs when remove device

From: Bartosz Golaszewski
Date: Sun Aug 28 2022 - 09:59:58 EST


On Mon, Aug 22, 2022 at 5:52 AM Wei Yongjun <weiyongjun1@xxxxxxxxxx> wrote:
>
> GPIO mockup debugfs is created in gpio_mockup_probe() but
> forgot to remove when remove device. This patch add a devm
> managed callback for removing them.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
> ---
> v1 -> v2: return from devm_add_xx directly as Bartosz's suggestion

Applied, thanks!

Bart