Skip to contentSkip to conversation

phy: xgene: Remove duplicate code to set ctx->dev

PATCH New Axel Lin 1 participant 1 message Feb 25, 2015 Generic PHY framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 phy: xgene: Remove duplicate code to set ctx->dev

Set it once is enough and it's done after devm_kzalloc().

---
 drivers/phy/phy-xgene.c | 1 -
 1 file changed, 1 deletion(-)
drivers/phy/phy-xgene.c +0 -1
index 29214a3..2263cd0 100644
@@ -1704,7 +1704,6 @@ static int xgene_phy_probe(struct platform_device *pdev)
 	for (i = 0; i < MAX_LANE; i++)
 		ctx->sata_param.speed[i] = 2; /* Default to Gen3 */
 
-	ctx->dev = &pdev->dev;
 	platform_set_drvdata(pdev, ctx);
 
 	ctx->phy = devm_phy_create(ctx->dev, NULL, &xgene_phy_ops);
Signature · 1 line
1.9.1