gpio: pca953x: propagate the errno from the chip_init functions
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 14 Oct 2011 13:32:00 +0000 (15:32 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 29 Oct 2011 10:26:29 +0000 (12:26 +0200)
commit7ea2aa2046a15af1c048115e7c05f1ba1566899d
treeecc9f603d4d22132019fbad9ef249aab18530d45
parentf0eb824beee3f596b9799e667a6fdac3116e9f7d
gpio: pca953x: propagate the errno from the chip_init functions

Initializing the chips may return with an error, but this error gets
dropped in probe(). Propagate this further to the driver core. Also,
simplify returning the error in one of the init functions.

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>
drivers/gpio/gpio-pca953x.c