Skip to content
Snippets Groups Projects
Commit ced1cbac authored by roel kluin's avatar roel kluin Committed by Jeff Garzik
Browse files

AX88796: ax_probe() fix irq assignment


dev->irq is unsigned

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent d51894f4
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment