* [PATCH] phy: xgene: Remove duplicate code to set ctx->dev
@ 2015-02-25 14:10 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2015-02-25 14:10 UTC (permalink / raw)
To: Kishon Vijay Abraham I; +Cc: Loc Ho, linux-kernel
Set it once is enough and it's done after devm_kzalloc().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/phy/phy-xgene.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/phy/phy-xgene.c b/drivers/phy/phy-xgene.c
index 29214a3..2263cd0 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);
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-25 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 14:10 [PATCH] phy: xgene: Remove duplicate code to set ctx->dev Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox