AX88796: ax_probe() fix irq assignment
authorroel kluin <roel.kluin@gmail.com>
Tue, 21 Oct 2008 05:44:02 +0000 (01:44 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 22 Oct 2008 10:22:08 +0000 (06:22 -0400)
dev->irq is unsigned

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ax88796.c

index 4207d6efddc097c5b62df3db15d726e102f612e1..9a314d88e7b67aa16b74e60c442bc655242d9bf8 100644 (file)
@@ -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) {