Fix error checking in Vitesse IRQ config
authorAndy Fleming <afleming@freescale.com>
Wed, 18 Jul 2007 06:06:28 +0000 (01:06 -0500)
committerJeff Garzik <jeff@garzik.org>
Tue, 24 Jul 2007 20:28:41 +0000 (16:28 -0400)
commit52cb1c2b70d9d2a81e842b90456b7a8158541ffd
tree82ad0bd34225bd2b2b02e461d7941d7fe2c46543
parentfe6d3a4049ec9d859d75ddfcc6865a0f58178924
Fix error checking in Vitesse IRQ config

phy_read() returns a negative number if there's an error, but the
error-checking code in the Vitesse driver's config_intr function
triggers if phy_read() returns non-zero.  Correct that.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/phy/vitesse.c