mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
gpio: pca953x: suppress interrupts warning when not applicable
Don't warn about missing interrupts support when the parent interrupt is not defined. Enabling interrupts support would not make it work anyway. Signed-off-by: Baruch Siach <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
1 parent
122d00f778
commit
72b38caf7b
1 file changed
+1
-1
@@ -708,7 +708,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,
|
||||
{
|
||||
struct i2c_client *client = chip->client;
|
||||
|
||||
if (irq_base != -1 && (chip->driver_data & PCA_INT))
|
||||
if (client->irq && irq_base != -1 && (chip->driver_data & PCA_INT))
|
||||
dev_warn(&client->dev, "interrupt support not compiled in\n");
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user