AX88796: ax_probe() fix irq assignment
Subsystems (2)
PATCH 1/1 AX88796: ax_probe() fix irq assignment
dev->irq is unsigned
Signed-off-by Roel Kluin <[email protected]>
---
drivers/net/ax88796.c +3 -3
@@ -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 ) {
Jeff Garzik
AppliedQuoted 11 lines · roel kluin
dev->irqis unsignedSigned-off-by Roel Kluin <[email protected]>---
drivers/net/ax88796.c +0
-0@@ -838,12 +838,12 @@ static int ax_probe(struct platform_device *pdev)/* find the platform resources */
drivers/net/ax88796.c static int ax_probe(struct platform_device *pdev) · line 846
Quoted 10 lines
drivers/net/ax88796.c +3
-3- 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;
applied