From af561def2e759fd92ba5882e16de43812573f2d9 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 23 Oct 2024 19:49:26 +0800 Subject: [PATCH] Revert "regulator: core: Ensure debugfs is fully initialized" This reverts commit 175fb4a3cc2b8373fe9266e1aba7e66925ec7da4. Signed-off-by: Tao Huang --- drivers/regulator/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4227aba54bb7..85e238a93812 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1924,8 +1924,6 @@ static struct regulator *create_regulator(struct regulator_dev *rdev, if (err != -EEXIST) regulator->debugfs = debugfs_create_dir(supply_name, rdev->debugfs); - else - regulator->debugfs = ERR_PTR(err); if (IS_ERR(regulator->debugfs)) rdev_dbg(rdev, "Failed to create debugfs directory\n");