aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorFlorian Fainelli <[email protected]>2014-08-28 00:04:49 +0000
committerDavid S. Miller <[email protected]>2014-08-28 05:59:39 +0000
commitfa981d9af82e08f316ed25ed43078f995cc4be0a (patch)
tree8452bf0e5628615193033b4a4aaa83c6562d4b66 /net/dsa/dsa.c
parentnet: phy: provide stub for fixed_phy_set_link_update (diff)
downloadkernel-fa981d9af82e08f316ed25ed43078f995cc4be0a.tar.gz
kernel-fa981d9af82e08f316ed25ed43078f995cc4be0a.zip
net: dsa: provide a switch device device tree node pointer
We might need to fetch additional resources from the device tree node pointer, such as register ranges or other properties. Keep a device_node pointer around for this. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 92e71d2a2ccd..a28ef432d016 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -410,6 +410,7 @@ static int dsa_of_probe(struct platform_device *pdev)
chip_index++;
cd = &pd->chip[chip_index];
+ cd->of_node = child;
cd->mii_bus = &mdio_bus->dev;
sw_addr = of_get_property(child, "reg", NULL);