From: roel kluin Date: Tue, 21 Oct 2008 05:44:02 +0000 (-0400) Subject: AX88796: ax_probe() fix irq assignment X-Git-Tag: v2.6.28-rc1~3^2~22 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ced1cbacc0557eda31ab59317c09f774cff865bb;p=linux-2.6-omap-h63xx.git AX88796: ax_probe() fix irq assignment dev->irq is unsigned Signed-off-by: Roel Kluin Signed-off-by: Jeff Garzik --- 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) {