]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/gianfar_mii.c
Merge branch 'upstream'
[karo-tx-linux.git] / drivers / net / gianfar_mii.c
index 04a462c2a5b7e8bd47bdb0299841d63840816467..74e52fcbf8064d38186bab71450c57823345cc1c 100644 (file)
@@ -128,6 +128,7 @@ int gfar_mdio_probe(struct device *dev)
        struct gianfar_mdio_data *pdata;
        struct gfar_mii *regs;
        struct mii_bus *new_bus;
+       struct resource *r;
        int err = 0;
 
        if (NULL == dev)
@@ -151,8 +152,10 @@ int gfar_mdio_probe(struct device *dev)
                return -ENODEV;
        }
 
+       r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+
        /* Set the PHY base address */
-       regs = (struct gfar_mii *) ioremap(pdata->paddr, 
+       regs = (struct gfar_mii *) ioremap(r->start,
                        sizeof (struct gfar_mii));
 
        if (NULL == regs) {