diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-10-29 09:57:56 -0700 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@oracle.com> | 2019-10-29 09:57:56 -0700 |
commit | c6b69bf143734a797b45e4728dc5ad80586d206c (patch) | |
tree | 51a3940b24d98188d8e38c9368bc861fe18c95db /drivers/fsi/fsi-core.c | |
parent | 5478f912d225a1745a4b3d5f564daa0004d35a42 (diff) | |
download | linux-c6b69bf143734a797b45e4728dc5ad80586d206c.tar.bz2 |
soc: ti: omap-prm: fix return value check in omap_prm_probe()
In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 3e99cb214f03 ("soc: ti: add initial PRM driver with reset control support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Diffstat (limited to 'drivers/fsi/fsi-core.c')
0 files changed, 0 insertions, 0 deletions