Skip to content

Commit

Permalink
AX88796: ax_probe() fix irq assignment
Browse files Browse the repository at this point in the history
dev->irq is unsigned

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
roel kluin authored and Jeff Garzik committed Oct 22, 2008
1 parent d51894f commit ced1cba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ced1cba

Please sign in to comment.