Message ID | fe65ac347a126b72e6deb30dbcd8c71530147509.1690890774.git.mazziesaccount@gmail.com |
---|---|
State | New |
Headers | show |
Series | fix fwnode_irq_get[_byname()] returnvalue | expand |
diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 138c3f5e0093..893fe7cd3e41 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -129,7 +129,7 @@ static int smbalert_probe(struct i2c_client *ara) } else { irq = fwnode_irq_get_byname(dev_fwnode(adapter->dev.parent), "smbus_alert"); - if (irq <= 0) + if (irq < 0) return irq; }