Skip to content

Commit 71ebc45

Browse files
andy-shevWolfram Sang
authored andcommitted
i2c: core: Use dev_fwnode()
irq_domain_create_linear() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using direct dereference(). So use the dev_fwnode() helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 861e0f8 commit 71ebc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/i2c-core-base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ static int i2c_setup_host_notify_irq_domain(struct i2c_adapter *adap)
14761476
if (!i2c_check_functionality(adap, I2C_FUNC_SMBUS_HOST_NOTIFY))
14771477
return 0;
14781478

1479-
domain = irq_domain_create_linear(adap->dev.parent->fwnode,
1479+
domain = irq_domain_create_linear(dev_fwnode(adap->dev.parent),
14801480
I2C_ADDR_7BITS_COUNT,
14811481
&i2c_host_notify_irq_ops, adap);
14821482
if (!domain)

0 commit comments

Comments
 (0)