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)
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>

No differences found