diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-10-21 07:44:02 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-10-22 12:22:08 +0200 |
commit | ced1cbacc0557eda31ab59317c09f774cff865bb (patch) | |
tree | 44ca7963269faa43d45b273386709ae23163cd1f /drivers/net/ax88796.c | |
parent | gianfar: fix handle errors returned by platform_get_irq*() (diff) | |
download | linux-ced1cbacc0557eda31ab59317c09f774cff865bb.tar.xz linux-ced1cbacc0557eda31ab59317c09f774cff865bb.zip |
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) { |