Pass regs instead of dev because this will be chagned by
driver model.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
        struct mii_dev *bus;
 };
 
-static inline int mdio_wait(struct eth_device *dev)
+static inline int mdio_wait(struct zynq_gem_regs *regs)
 {
-       struct zynq_gem_regs *regs = (struct zynq_gem_regs *)dev->iobase;
        u32 timeout = 20000;
 
        /* Wait till MDIO interface is ready to accept a new transaction. */
        u32 mgtcr;
        struct zynq_gem_regs *regs = (struct zynq_gem_regs *)dev->iobase;
 
-       if (mdio_wait(dev))
+       if (mdio_wait(regs))
                return 1;
 
        /* Construct mgtcr mask for the operation */
        /* Write mgtcr and wait for completion */
        writel(mgtcr, ®s->phymntnc);
 
-       if (mdio_wait(dev))
+       if (mdio_wait(regs))
                return 1;
 
        if (op == ZYNQ_GEM_PHYMNTNC_OP_R_MASK)