projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a83b14
)
phy: xgene: Remove duplicate code to set ctx->dev
author
Axel Lin
<axel.lin@ingics.com>
Wed, 25 Feb 2015 14:10:53 +0000
(22:10 +0800)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Wed, 4 Mar 2015 13:01:47 +0000
(18:31 +0530)
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>
drivers/phy/phy-xgene.c
patch
|
blob
|
history
diff --git
a/drivers/phy/phy-xgene.c
b/drivers/phy/phy-xgene.c
index
29214a3
..
2263cd0
100644
(file)
--- 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);