In preparation to class_find_device_by_of_node() going away switch to using class_find_device_by_fwnode(). Signed-off-by: Dmitry Torokhov --- drivers/fpga/fpga-mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index 2672070ced02..1e7585a4608a 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -716,7 +716,8 @@ struct fpga_manager *of_fpga_mgr_get(struct device_node *node) struct fpga_manager *mgr; struct device *mgr_dev; - mgr_dev = class_find_device_by_of_node(&fpga_mgr_class, node); + mgr_dev = class_find_device_by_fwnode(&fpga_mgr_class, + of_fwnode_handle(node)); if (!mgr_dev) return ERR_PTR(-ENODEV); -- 2.53.0.959.g497ff81fa9-goog