[PATCH 04/10] regulator: of: switch to using class_find_device_by_fwnode()
Dmitry Torokhov
dmitry.torokhov at gmail.com
Sun Mar 22 18:54:22 PDT 2026
In preparation to class_find_device_by_of_node() going away switch to
using class_find_device_by_fwnode().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov at gmail.com>
---
drivers/regulator/of_regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index c0cc6cc0afd8..43ec0845c940 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -637,7 +637,7 @@ static struct regulator_dev *of_find_regulator_by_node(struct device_node *np)
{
struct device *dev;
- dev = class_find_device_by_of_node(®ulator_class, np);
+ dev = class_find_device_by_fwnode(®ulator_class, of_fwnode_handle(np));
return dev ? dev_to_rdev(dev) : NULL;
}
--
2.53.0.959.g497ff81fa9-goog
More information about the linux-phy
mailing list