Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: ad7879 - pass up error codes from probe functions

If the sub-probe functions fail, we need to pass up the error code to the
higher levels from the probe function. We currently always return 0 even
if there was an error so higher levels don't report problems.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Michael Hennerich and committed by
Dmitry Torokhov
4fa5757a 3ac91d36

+2 -2
+2 -2
drivers/input/touchscreen/ad7879.c
··· 645 645 kfree(ts); 646 646 } 647 647 648 - return 0; 648 + return error; 649 649 } 650 650 651 651 static int __devexit ad7879_remove(struct spi_device *spi) ··· 732 732 kfree(ts); 733 733 } 734 734 735 - return 0; 735 + return error; 736 736 } 737 737 738 738 static int __devexit ad7879_remove(struct i2c_client *client)