aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fsl_pq_mdio.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-05 05:06:47 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-05 05:06:47 -0500
commit508827ff0ac3981d420edac64a70de7f4e304d38 (patch)
treeb0cee8ddef9f0ceab68c388e4ae46b7295eb2cb5 /drivers/net/fsl_pq_mdio.c
parent2c3c3d02f28801d7ad2da4952b2c7ca6621ef221 (diff)
parent72e2240f181871675d3a979766330c91d48a1673 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/tokenring/tmspci.c drivers/net/ucc_geth_mii.c
Diffstat (limited to 'drivers/net/fsl_pq_mdio.c')
-rw-r--r--drivers/net/fsl_pq_mdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c
index c434a156d7a9..b0ce1445d4a8 100644
--- a/drivers/net/fsl_pq_mdio.c
+++ b/drivers/net/fsl_pq_mdio.c
@@ -129,7 +129,7 @@ int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
129static int fsl_pq_mdio_reset(struct mii_bus *bus) 129static int fsl_pq_mdio_reset(struct mii_bus *bus)
130{ 130{
131 struct fsl_pq_mdio __iomem *regs = (void __iomem *)bus->priv; 131 struct fsl_pq_mdio __iomem *regs = (void __iomem *)bus->priv;
132 unsigned int timeout = PHY_INIT_TIMEOUT; 132 int timeout = PHY_INIT_TIMEOUT;
133 133
134 mutex_lock(&bus->mdio_lock); 134 mutex_lock(&bus->mdio_lock);
135 135
@@ -145,7 +145,7 @@ static int fsl_pq_mdio_reset(struct mii_bus *bus)
145 145
146 mutex_unlock(&bus->mdio_lock); 146 mutex_unlock(&bus->mdio_lock);
147 147
148 if(timeout == 0) { 148 if (timeout < 0) {
149 printk(KERN_ERR "%s: The MII Bus is stuck!\n", 149 printk(KERN_ERR "%s: The MII Bus is stuck!\n",
150 bus->name); 150 bus->name);
151 return -EBUSY; 151 return -EBUSY;