]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] fix pxa930_trkball build errors
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 8 Jan 2009 12:27:00 +0000 (12:27 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 8 Jan 2009 16:29:44 +0000 (16:29 +0000)
drivers/input/mouse/pxa930_trkball.c: In function `pxa930_trkball_probe':
drivers/input/mouse/pxa930_trkball.c:189: error: `ret' undeclared (first use in this function)
drivers/input/mouse/pxa930_trkball.c:230: error: `ret' undeclared (first use in this function)

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/input/mouse/pxa930_trkball.c

index a0f45c4fc198aef847dacae8d5184972f7d54e45..d297accf9a7feeb8077737c187d39d64c3f89c0b 100644 (file)
@@ -186,7 +186,7 @@ static int __devinit pxa930_trkball_probe(struct platform_device *pdev)
        error = request_irq(irq, pxa930_trkball_interrupt, IRQF_DISABLED,
                            pdev->name, trkball);
        if (error) {
-               dev_err(&pdev->dev, "failed to request irq: %d\n", ret);
+               dev_err(&pdev->dev, "failed to request irq: %d\n", error);
                goto failed_free_io;
        }
 
@@ -227,7 +227,7 @@ failed_free_io:
        iounmap(trkball->mmio_base);
 failed:
        kfree(trkball);
-       return ret;
+       return error;
 }
 
 static int __devexit pxa930_trkball_remove(struct platform_device *pdev)