diff options
author | Matheus Tavares <matheus.bernardino@usp.br> | 2018-11-03 19:49:44 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:13:05 +0100 |
commit | 524b2be52946ce90b1716a2fd6b298182e325dc9 (patch) | |
tree | b0d638f0067892c263ccde5aacf1d1f6e2eda331 /scripts/mod/modpost.c | |
parent | caf6a81cd7037787d34db04a63d28a419d5d01e8 (diff) |
staging:iio:ad2s90: Make probe handle spi_setup failure
[ Upstream commit b3a3eafeef769c6982e15f83631dcbf8d1794efb ]
Previously, ad2s90_probe ignored the return code from spi_setup, not
handling its possible failure. This patch makes ad2s90_probe check if
the code is an error code and, if so, do the following:
- Call dev_err with an appropriate error message.
- Return the spi_setup's error code.
Note: The 'return ret' statement could be out of the 'if' block, but
this whole block will be moved up in the function in the patch:
'staging:iio:ad2s90: Move device registration to the end of probe'.
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/mod/modpost.c')
0 files changed, 0 insertions, 0 deletions