|
@@ -19,7 +19,7 @@
|
|
/* Wait till MDIO interface is ready to accept a new transaction.*/
|
|
/* Wait till MDIO interface is ready to accept a new transaction.*/
|
|
int axienet_mdio_wait_until_ready(struct axienet_local *lp)
|
|
int axienet_mdio_wait_until_ready(struct axienet_local *lp)
|
|
{
|
|
{
|
|
- long end = jiffies + 2;
|
|
|
|
|
|
+ unsigned long end = jiffies + 2;
|
|
while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) &
|
|
while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) &
|
|
XAE_MDIO_MCR_READY_MASK)) {
|
|
XAE_MDIO_MCR_READY_MASK)) {
|
|
if (time_before_eq(end, jiffies)) {
|
|
if (time_before_eq(end, jiffies)) {
|