diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-10-21 01:44:02 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-10-22 06:22:08 -0400 |
commit | ced1cbacc0557eda31ab59317c09f774cff865bb (patch) | |
tree | 44ca7963269faa43d45b273386709ae23163cd1f /drivers/net/ax88796.c | |
parent | d51894f4979e941a86309f29898579cbb591514e (diff) | |
download | linux-ced1cbacc0557eda31ab59317c09f774cff865bb.tar.bz2 |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c index 4207d6efddc0..9a314d88e7b6 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) { |