summaryrefslogtreecommitdiffstats
path: root/drivers/net/ax88796.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-10-21 01:44:02 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-10-22 06:22:08 -0400
commitced1cbacc0557eda31ab59317c09f774cff865bb (patch)
tree44ca7963269faa43d45b273386709ae23163cd1f /drivers/net/ax88796.c
parentd51894f4979e941a86309f29898579cbb591514e (diff)
AX88796: ax_probe() fix irq assignment
dev->irq is unsigned Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ax88796.c')
-rw-r--r--drivers/net/ax88796.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c
index 4207d6efddc..9a314d88e7b 100644
--- a/drivers/net/ax88796.c
+++ b/drivers/net/ax88796.c
@@ -838,12 +838,12 @@ static int ax_probe(struct platform_device *pdev)
/* find the platform resources */
- dev->irq = platform_get_irq(pdev, 0);
- if (dev->irq < 0) {
+ ret = platform_get_irq(pdev, 0);
+ if (ret < 0) {
dev_err(&pdev->dev, "no IRQ specified\n");
- ret = -ENXIO;
goto exit_mem;
}
+ dev->irq = ret;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res == NULL) {