summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-spear1310-miphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/phy-spear1310-miphy.c')
-rw-r--r--drivers/phy/phy-spear1310-miphy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/phy-spear1310-miphy.c b/drivers/phy/phy-spear1310-miphy.c
index 6dcbfcddb372..911d25b53064 100644
--- a/drivers/phy/phy-spear1310-miphy.c
+++ b/drivers/phy/phy-spear1310-miphy.c
@@ -212,10 +212,8 @@ static int spear1310_miphy_probe(struct platform_device *pdev)
struct phy_provider *phy_provider;
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(dev, "can't alloc spear1310_miphy private date memory\n");
+ if (!priv)
return -ENOMEM;
- }
priv->misc =
syscon_regmap_lookup_by_phandle(dev->of_node, "misc");