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@gmail.com>
---
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