diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-01-10 01:25:33 +0000 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2020-01-17 10:54:03 +0530 |
commit | 0d5677ecb014dfa26dca0c96a4c44fd9012e17ba (patch) | |
tree | 509b7e199bf0fc333f66b0655c253dfd443ecd2f /drivers/phy | |
parent | b66d1ac82918cb5860e684153706058b3330df00 (diff) | |
download | linux-0d5677ecb014dfa26dca0c96a4c44fd9012e17ba.tar.gz linux-0d5677ecb014dfa26dca0c96a4c44fd9012e17ba.tar.bz2 linux-0d5677ecb014dfa26dca0c96a4c44fd9012e17ba.zip |
phy: ti: j721e-wiz: Fix return value check in wiz_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.
Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/ti/phy-j721e-wiz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index b5f6019e5c7d..7b51045df783 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -794,7 +794,7 @@ static int wiz_probe(struct platform_device *pdev) } base = devm_ioremap(dev, res.start, resource_size(&res)); - if (IS_ERR(base)) + if (!base) goto err_addr_to_resource; regmap = devm_regmap_init_mmio(dev, base, &wiz_regmap_config); |