aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pca953x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r--drivers/gpio/gpio-pca953x.c2
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,
708{ 708{
709 struct i2c_client *client = chip->client; 709 struct i2c_client *client = chip->client;
710 710
711 if (irq_base != -1 && (chip->driver_data & PCA_INT)) 711 if (client->irq && irq_base != -1 && (chip->driver_data & PCA_INT))
712 dev_warn(&client->dev, "interrupt support not compiled in\n"); 712 dev_warn(&client->dev, "interrupt support not compiled in\n");
713 713
714 return 0; 714 return 0;