diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-06-21 16:38:46 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-02 17:00:49 +0300 |
commit | 72b38caf7b7568ebc167fdd4ec5fa1daa113d08b (patch) | |
tree | 9c1e5f7de05a06d6be0c5df23f6116ebf55e0957 /drivers/gpio/gpio-pca953x.c | |
parent | 122d00f778b370124ec38bb59b2ac7622d0c6943 (diff) | |
download | linux-72b38caf7b7568ebc167fdd4ec5fa1daa113d08b.tar.xz |
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 <baruch@tkos.co.il>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r-- | drivers/gpio/gpio-pca953x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index c55ad157e820..023a32cfac42 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -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; |