commit | 1454e15bc28ba94aa5d6b31a83a42d5c03af2a6d | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Tue May 16 15:26:12 2017 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Jun 03 10:52:31 2017 +0100 |
tree | d43e49ed59da745c4b01a61597c5a4584d1a287d | |
parent | 948588e25b8af5e66962ed3f53e1cae1656fa5af [diff] |
iio: adc: mxs-lradc: Fix return value check in mxs_lradc_adc_probe() In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Also add NULL test for iores. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>