summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-02-25 22:10:53 +0800
committerKishon Vijay Abraham I <kishon@ti.com>2015-03-04 18:31:47 +0530
commit991e45f8f8ff079a04caa710be417e8e713e092c (patch)
treed55a668ab65ab7074802590d4c82bbdd86ab1cb0 /drivers/phy
parent7a83b145b5891f445009b341361e2e458bd13d2b (diff)
downloadlinux-991e45f8f8ff079a04caa710be417e8e713e092c.tar.bz2
phy: xgene: Remove duplicate code to set ctx->dev
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>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-xgene.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/phy/phy-xgene.c b/drivers/phy/phy-xgene.c
index 29214a36ea28..2263cd010032 100644
--- a/drivers/phy/phy-xgene.c
+++ b/drivers/phy/phy-xgene.c
@@ -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);