diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-07-01 11:23:18 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-07-27 23:31:16 +0300 |
commit | 8682dc1245099cccd7e75f72ffb911341bf45ba7 (patch) | |
tree | e3a14b9f3a4dfc8107fb4abb71a3e5d4df5f2b80 /drivers/i2c/i2c-core-base.c | |
parent | 99f0975d760b6320dd5490bd0bc3a31900284757 (diff) | |
download | linux-8682dc1245099cccd7e75f72ffb911341bf45ba7.tar.xz |
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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-core-base.c')
-rw-r--r-- | drivers/i2c/i2c-core-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index dc43242a85ba..69217d2193da 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -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)) return 0; - domain = irq_domain_create_linear(adap->dev.fwnode, + domain = irq_domain_create_linear(adap->dev.parent->fwnode, I2C_ADDR_7BITS_COUNT, &i2c_host_notify_irq_ops, adap); if (!domain) |