aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pca953x.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-10-14 09:31:59 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-10-29 06:26:29 -0400
commitf0eb824beee3f596b9799e667a6fdac3116e9f7d (patch)
tree06d1247aad91c4b883a3e760881917485188ae1a /drivers/gpio/gpio-pca953x.c
parentd92ef29a6fa971d9e314e412cd9c09757906411a (diff)
gpio: pca953x: remove unneeded check for chip type
We can assume our own device_id table is correct, so remove checking if the chip type is valid. (The check was bogus anyway: If it found an invalid entry, it returned with 0!) This is in preparation for further cleanups. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r--drivers/gpio/gpio-pca953x.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index c43b8ff626a7..45de6a4ac632 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -673,10 +673,8 @@ static int __devinit pca953x_probe(struct i2c_client *client,
673 673
674 if (chip->chip_type == PCA953X_TYPE) 674 if (chip->chip_type == PCA953X_TYPE)
675 device_pca953x_init(chip, invert); 675 device_pca953x_init(chip, invert);
676 else if (chip->chip_type == PCA957X_TYPE)
677 device_pca957x_init(chip, invert);
678 else 676 else
679 goto out_failed; 677 device_pca957x_init(chip, invert);
680 678
681 ret = pca953x_irq_setup(chip, id, irq_base); 679 ret = pca953x_irq_setup(chip, id, irq_base);
682 if (ret) 680 if (ret)