projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77ba6e7
)
phy: intel: Remove redundant dev_err call in thunderbay_emmc_phy_probe()
author
Zou Wei
<zou_wei@huawei.com>
Thu, 25 Nov 2021 06:38:09 +0000
(14:38 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 2 Dec 2021 04:16:33 +0000
(09:46 +0530)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link:
https://lore.kernel.org/r/1637822289-24534-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/intel/phy-intel-thunderbay-emmc.c
patch
|
blob
|
history
diff --git
a/drivers/phy/intel/phy-intel-thunderbay-emmc.c
b/drivers/phy/intel/phy-intel-thunderbay-emmc.c
index
2d6ea84
..
593f697
100644
(file)
--- a/
drivers/phy/intel/phy-intel-thunderbay-emmc.c
+++ b/
drivers/phy/intel/phy-intel-thunderbay-emmc.c
@@
-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);