i2c: powermac: convert of_node usage to fwnode

'of_node' in i2c_boardinfo is deprecated in favor of 'fwnode'. The I2C
core handles them equally, so simply convert this driver to fwnode.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
Wolfram Sang 2025-05-19 13:13:12 +02:00
parent 64639da56b
commit 89b4fb2e61
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ static void i2c_powermac_register_devices(struct i2c_adapter *adap,
/* Fill out the rest of the info structure */ /* Fill out the rest of the info structure */
info.addr = addr; info.addr = addr;
info.irq = irq_of_parse_and_map(node, 0); info.irq = irq_of_parse_and_map(node, 0);
info.of_node = of_node_get(node); info.fwnode = of_fwnode_handle(of_node_get(node));
newdev = i2c_new_client_device(adap, &info); newdev = i2c_new_client_device(adap, &info);
if (IS_ERR(newdev)) { if (IS_ERR(newdev)) {