wait_bit: use wait_for_bit_le32 and remove wait_for_bit
[oweals/u-boot.git] / drivers / net / ravb.c
index dc743e113dec6f41a69ae6490f17aa5ca41c7708..26bd91529193d8f34a2ff65ababd96dea79f64f8 100644 (file)
@@ -222,8 +222,8 @@ static int ravb_reset(struct udevice *dev)
        writel(CCC_OPC_CONFIG, eth->iobase + RAVB_REG_CCC);
 
        /* Check the operating mode is changed to the config mode. */
-       return wait_for_bit(dev->name, (void *)eth->iobase + RAVB_REG_CSR,
-                           CSR_OPS_CONFIG, true, 100, true);
+       return wait_for_bit_le32(eth->iobase + RAVB_REG_CSR,
+                                CSR_OPS_CONFIG, true, 100, true);
 }
 
 static void ravb_base_desc_init(struct ravb_priv *eth)