Skip to content

Commit 0d5677e

Browse files
Wei Yongjunkishon
authored andcommitted
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: 091876c ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
1 parent b66d1ac commit 0d5677e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ti/phy-j721e-wiz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ static int wiz_probe(struct platform_device *pdev)
794794
}
795795

796796
base = devm_ioremap(dev, res.start, resource_size(&res));
797-
if (IS_ERR(base))
797+
if (!base)
798798
goto err_addr_to_resource;
799799

800800
regmap = devm_regmap_init_mmio(dev, base, &wiz_regmap_config);

0 commit comments

Comments
 (0)