On Fri, Jul 26, 2019 at 9:48 AM Anatolij Gustschin <ag...@denx.de> wrote: > > On Tue, 23 Jul 2019 04:07:04 +0000 > Joe Hershberger joe.hershber...@ni.com wrote: > > > > > static int mv88e61xx_phy_wait(struct phy_device *phydev) > > > > { > > > > + struct mv88e61xx_phy_priv *priv = phydev->priv; > > > > int val; > > > > u32 timeout = 100; > > > > > > > > do { > > > > - val = mv88e61xx_reg_read(phydev, DEVADDR_GLOBAL_2, > > > > + val = mv88e61xx_reg_read(phydev, priv->global2, > > > > > > Probably just use phydev->priv->global2 instead of the local variable. > > No, I'll stick with local variable. priv is void*, we will get > > +drivers/net/phy/mv88e61xx.c:338:48: error: dereferencing 'void *' pointer > [-Werror] > + val = mv88e61xx_reg_read(phydev, phydev->priv->global2,
Ah, ok. -Joe _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot