Skip to content

Commit

Permalink
phy: xgene: Remove duplicate code to set ctx->dev
Browse files Browse the repository at this point in the history
Set it once is enough and it's done after devm_kzalloc().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
  • Loading branch information
AxelLin authored and kishon committed Mar 4, 2015
1 parent 7a83b14 commit 991e45f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/phy/phy-xgene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 991e45f

Please sign in to comment.