projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2ce49e
)
drivers: net: cpsw-phy-sel: initialize priv->dev
author
Mugunthan V N
<mugunthanvnm@ti.com>
Fri, 9 May 2014 13:37:33 +0000
(19:07 +0530)
committer
David S. Miller
<davem@davemloft.net>
Tue, 13 May 2014 04:10:59 +0000
(
00:10
-0400)
priv->dev is uninitialized, initializing with pdev->dev
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw-phy-sel.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/cpsw-phy-sel.c
b/drivers/net/ethernet/ti/cpsw-phy-sel.c
index
148da9a
..
86b5dce
100644
(file)
--- a/
drivers/net/ethernet/ti/cpsw-phy-sel.c
+++ b/
drivers/net/ethernet/ti/cpsw-phy-sel.c
@@
-132,6
+132,7
@@
static int cpsw_phy_sel_probe(struct platform_device *pdev)
return -ENOMEM;
}
+ priv->dev = &pdev->dev;
priv->cpsw_phy_sel = of_id->data;
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gmii-sel");