[PATCH 02/10] phy: core: switch to using class_find_device_by_fwnode()
Dmitry Torokhov <[email protected]> Sun, 22 Mar 2026 18:54:20 -0700
| Newsgroups | org.kernel.vger.linux-fpga,dev.linux.lists.driver-core,org.infradead.lists.linux-phy,org.kernel.vger.linux-kernel,org.kernel.vger.linux-leds,org.kernel.vger.linux-spi,org.kernel.vger.netdev |
|---|---|
| Message-ID | <20260322-remove-device-find-by-of-node-v1-2-b72eb22a1215@gmail.com> |
In preparation to class_find_device_by_of_node() going away switch to using class_find_device_by_fwnode(). Signed-off-by: Dmitry Torokhov <[email protected]> --- drivers/phy/phy-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 21aaf2f76e53..57bce6b63a31 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -761,7 +761,8 @@ struct phy *of_phy_simple_xlate(struct device *dev, { struct device *target_dev; - target_dev = class_find_device_by_of_node(&phy_class, args->np); + target_dev = class_find_device_by_fwnode(&phy_class, + of_fwnode_handle(args->np)); if (!target_dev) return ERR_PTR(-ENODEV); -- 2.53.0.959.g497ff81fa9-goog