mirror of https://github.com/torvalds/linux.git
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:
parent
64639da56b
commit
89b4fb2e61
|
|
@ -349,7 +349,7 @@ static void i2c_powermac_register_devices(struct i2c_adapter *adap,
|
|||
/* Fill out the rest of the info structure */
|
||||
info.addr = addr;
|
||||
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);
|
||||
if (IS_ERR(newdev)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue