diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-02-25 22:10:53 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2015-11-24 17:43:19 +0800 |
commit | 80e0fbcdee39bb83a0b929c92ef6c7e0203e2a6a (patch) | |
tree | 6ccece4e7fe79a2219f3404d39648558405be52d | |
parent | 5e39a931b780c1ef19defd1c911e178824d084fd (diff) |
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>
(cherry picked from commit 991e45f8f8ff079a04caa710be417e8e713e092c)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r-- | drivers/phy/phy-xgene.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/phy/phy-xgene.c b/drivers/phy/phy-xgene.c index f8a51b16ade8..02fdc72967f5 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, NULL); |