Skip to content

Commit

Permalink
Input: ad7879 - pass up error codes from probe functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hennerich authored and Dmitry Torokhov committed Oct 6, 2009
1 parent 3ac91d3 commit 4fa5757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/touchscreen/ad7879.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static int __devinit ad7879_probe(struct spi_device *spi)
kfree(ts);
}

return 0;
return error;
}

static int __devexit ad7879_remove(struct spi_device *spi)
Expand Down Expand Up @@ -732,7 +732,7 @@ static int __devinit ad7879_probe(struct i2c_client *client,
kfree(ts);
}

return 0;
return error;
}

static int __devexit ad7879_remove(struct i2c_client *client)
Expand Down

0 comments on commit 4fa5757

Please sign in to comment.