Skip to contentSkip to conversation

phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe()

PATCH Applied Zou Wei 2 participants 2 messages Nov 25, 2021 – Dec 2, 2021 Generic PHY framework

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/phy/intel/phy-intel-thunderbay-emmc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/phy/intel/phy-intel-thunderbay-emmc.c +1 -3
index 2d6ea84..593f697 100644
@@ -472,10 +472,8 @@ static int thunderbay_emmc_phy_probe(struct platform_device *pdev)
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	tbh_phy->reg_base = devm_ioremap_resource(&pdev->dev, res);
-	if (IS_ERR(tbh_phy->reg_base)) {
-		dev_err(&pdev->dev, "region map failed\n");
+	if (IS_ERR(tbh_phy->reg_base))
 		return PTR_ERR(tbh_phy->reg_base);
-	}
 
 	tbh_phy->phy_power_sts = PHY_UNINITIALIZED;
 	id = of_match_node(thunderbay_emmc_phy_of_match, pdev->dev.of_node);
Signature · 7 lines
2.6.2


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
maintainer Applied
#1 lore raw
Quoted 3 lines · Zou Wei

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Applied, thanks

Signature · 6 lines
~Vinod

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy