of/net: fs_enet/mii-bitbang.c: fix build breakage
authorAnatolij Gustschin <agust@denx.de>
Thu, 3 Jun 2010 01:06:54 +0000 (03:06 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 3 Jun 2010 03:02:40 +0000 (21:02 -0600)
Fixes build error caused by the OF device_node
pointer being moved into struct device

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/net/fs_enet/mii-bitbang.c

index 0f90685d3d19472e3bc0dc9b05ed5872a5fa9f63..3607340f3da7ce93a671a964366758780f7bc038 100644 (file)
@@ -169,7 +169,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
 
        new_bus->name = "CPM2 Bitbanged MII",
 
-       ret = fs_mii_bitbang_init(new_bus, ofdev->node);
+       ret = fs_mii_bitbang_init(new_bus, ofdev->dev.of_node);
        if (ret)
                goto out_free_bus;
 
@@ -181,7 +181,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,
        new_bus->parent = &ofdev->dev;
        dev_set_drvdata(&ofdev->dev, new_bus);
 
-       ret = of_mdiobus_register(new_bus, ofdev->node);
+       ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);
        if (ret)
                goto out_free_irqs;