From: Andy Shevchenko Date: Thu, 22 Aug 2024 23:05:50 +0000 (+0300) Subject: net: ethernet: ti: am65-cpsw-nuss: Replace of_node_to_fwnode() with more suitable API X-Git-Tag: v6.12-rc1~232^2~172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3333df3b4bc8904768c0fd3d8a93564163c7962d;p=thirdparty%2Flinux.git net: ethernet: ti: am65-cpsw-nuss: Replace of_node_to_fwnode() with more suitable API of_node_to_fwnode() is a IRQ domain specific implementation of of_fwnode_handle(). Replace the former with more suitable API. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Horman Link: https://patch.msgid.link/20240822230550.708112-1-andy.shevchenko@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 81d9f21086ec9..555aca4ffa249 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -2761,7 +2761,7 @@ am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx) } phylink = phylink_create(&port->slave.phylink_config, - of_node_to_fwnode(port->slave.port_np), + of_fwnode_handle(port->slave.port_np), port->slave.phy_if, &am65_cpsw_phylink_mac_ops); if (IS_ERR(phylink))