Skip to content

Commit 89b4fb2

Browse files
author
Wolfram Sang
committed
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>
1 parent 64639da commit 89b4fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-powermac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static void i2c_powermac_register_devices(struct i2c_adapter *adap,
349349
/* Fill out the rest of the info structure */
350350
info.addr = addr;
351351
info.irq = irq_of_parse_and_map(node, 0);
352-
info.of_node = of_node_get(node);
352+
info.fwnode = of_fwnode_handle(of_node_get(node));
353353

354354
newdev = i2c_new_client_device(adap, &info);
355355
if (IS_ERR(newdev)) {

0 commit comments

Comments
 (0)