Commit 61f4a65c authored by Wei Yongjun's avatar Wei Yongjun Committed by Jialin Zhang
Browse files

gpio: mockup: remove gpio debugfs when remove device

stable inclusion
from stable-v5.10.144
commit 3815e66c2183f3430490e450ba16779cf5214ec6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0V7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3815e66c2183f3430490e450ba16779cf5214ec6



--------------------------------

[ Upstream commit 303e6da9 ]

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 3ff6aefb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment