diff options
author | Krzysztof Kozlowski | 2020-08-29 08:47:15 +0200 |
---|---|---|
committer | Jonathan Cameron | 2020-09-03 19:40:49 +0100 |
commit | 6d2710ce2c45122eea4ccdb4cee1fd56e6702cea (patch) | |
tree | 69f5591df126cb45160c0ac22c66e1c8f503c12b /drivers/iio/adc/stm32-adc.c | |
parent | a3e584fab675b833e9923a0f5e76031b027525d9 (diff) |
iio: adc: rcar-gyroadc: Simplify with dev_err_probe()
Common pattern of handling deferred probe can be simplified with
dev_err_probe(). Less code and also it prints the error value.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200829064726.26268-7-krzk@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/stm32-adc.c')
0 files changed, 0 insertions, 0 deletions