|
@@ -306,10 +306,7 @@ static int i2c_smbus_host_notify_to_irq(const struct i2c_client *client)
|
|
if (client->flags & I2C_CLIENT_TEN)
|
|
if (client->flags & I2C_CLIENT_TEN)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- irq = irq_find_mapping(adap->host_notify_domain, client->addr);
|
|
|
|
- if (!irq)
|
|
|
|
- irq = irq_create_mapping(adap->host_notify_domain,
|
|
|
|
- client->addr);
|
|
|
|
|
|
+ irq = irq_create_mapping(adap->host_notify_domain, client->addr);
|
|
|
|
|
|
return irq > 0 ? irq : -ENXIO;
|
|
return irq > 0 ? irq : -ENXIO;
|
|
}
|
|
}
|