Commit 349f9832 authored by He Ying's avatar He Ying Committed by Vinod Koul

phy: phy-mmp3-hsic: Remove redundant dev_err call in mmp3_hsic_phy_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarHe Ying <heying24@huawei.com>
Link: https://lore.kernel.org/r/20210408090806.247325-1-heying24@huawei.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 185ff019
......@@ -47,10 +47,8 @@ static int mmp3_hsic_phy_probe(struct platform_device *pdev)
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(dev, resource);
if (IS_ERR(base)) {
dev_err(dev, "failed to remap PHY regs\n");
if (IS_ERR(base))
return PTR_ERR(base);
}
phy = devm_phy_create(dev, NULL, &mmp3_hsic_phy_ops);
if (IS_ERR(phy)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment