diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-21 21:56:56 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-21 21:56:56 +0000 | 
| commit | 2d13ccaa8797d7e599f3792aed4b1e44b47f94a5 (patch) | |
| tree | 7079c1610373fc6709c3a285a53099beaf21295a /drivers/gpio/gpio-pca953x.c | |
| parent | 59136ef3c596606d3eef920dc3e0fdfa2ce52c6f (diff) | |
| parent | 11f1c5de7be06bbb51363002ebc4d00edc2677df (diff) | |
| download | olio-linux-3.10-2d13ccaa8797d7e599f3792aed4b1e44b47f94a5.tar.xz olio-linux-3.10-2d13ccaa8797d7e599f3792aed4b1e44b47f94a5.zip  | |
Merge branch 'irqchip-consolidation' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into devel-stable
Conflicts:
	arch/arm/mach-omap2/board-4430sdp.c
	arch/arm/mach-omap2/board-omap4panda.c
	arch/arm/mach-omap2/include/mach/omap4-common.h
	arch/arm/plat-omap/include/plat/irqs.h
The changes to omap4-common.h were moved to arch/arm/mach-omap2/common.h
and the other trivial conflicts resolved.  The now empty ifdef in irqs.h
was also eliminated.
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
| -rw-r--r-- | drivers/gpio/gpio-pca953x.c | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 0550dcb8581..147df8ae79d 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -596,9 +596,6 @@ static int __devinit device_pca953x_init(struct pca953x_chip *chip, int invert)  	/* set platform specific polarity inversion */  	ret = pca953x_write_reg(chip, PCA953X_INVERT, invert); -	if (ret) -		goto out; -	return 0;  out:  	return ret;  } @@ -640,7 +637,7 @@ static int __devinit pca953x_probe(struct i2c_client *client,  	struct pca953x_platform_data *pdata;  	struct pca953x_chip *chip;  	int irq_base=0, invert=0; -	int ret = 0; +	int ret;  	chip = kzalloc(sizeof(struct pca953x_chip), GFP_KERNEL);  	if (chip == NULL) @@ -673,10 +670,10 @@ static int __devinit pca953x_probe(struct i2c_client *client,  	pca953x_setup_gpio(chip, id->driver_data & PCA_GPIO_MASK);  	if (chip->chip_type == PCA953X_TYPE) -		device_pca953x_init(chip, invert); -	else if (chip->chip_type == PCA957X_TYPE) -		device_pca957x_init(chip, invert); +		ret = device_pca953x_init(chip, invert);  	else +		ret = device_pca957x_init(chip, invert); +	if (ret)  		goto out_failed;  	ret = pca953x_irq_setup(chip, id, irq_base);  |