Commit 8682dc12 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: core: do not use logical device when creating irq domain

Let's rather use its physical parent device to give proper namings and
connections in debugfs.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 99f0975d
...@@ -1227,7 +1227,7 @@ static int i2c_setup_host_notify_irq_domain(struct i2c_adapter *adap) ...@@ -1227,7 +1227,7 @@ static int i2c_setup_host_notify_irq_domain(struct i2c_adapter *adap)
if (!i2c_check_functionality(adap, I2C_FUNC_SMBUS_HOST_NOTIFY)) if (!i2c_check_functionality(adap, I2C_FUNC_SMBUS_HOST_NOTIFY))
return 0; return 0;
domain = irq_domain_create_linear(adap->dev.fwnode, domain = irq_domain_create_linear(adap->dev.parent->fwnode,
I2C_ADDR_7BITS_COUNT, I2C_ADDR_7BITS_COUNT,
&i2c_host_notify_irq_ops, adap); &i2c_host_notify_irq_ops, adap);
if (!domain) if (!domain)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment