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 <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
464c3668f0
commit
fa981d9af8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user