commit | c8b9a02361d99364faddbf1193b85d476f35cfd3 | [log] [tgz] |
---|---|---|
author | Krzysztof Kozlowski <krzk@kernel.org> | Sat Aug 29 08:47:10 2020 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Thu Sep 03 19:40:48 2020 +0100 |
tree | a5701ee0b258cdc5cc5d2830dee12109b6ecbd3f | |
parent | 3bdb1255e6b0a49e83412ad0d15eb2b2f7f63482 [diff] |
iio: accel: mma8452: 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-2-krzk@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>