Commit d8f2f180 authored by Russell King's avatar Russell King Committed by Russell King

[ARM] fix pxa930_trkball build errors

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 29279267
...@@ -186,7 +186,7 @@ static int __devinit pxa930_trkball_probe(struct platform_device *pdev) ...@@ -186,7 +186,7 @@ static int __devinit pxa930_trkball_probe(struct platform_device *pdev)
error = request_irq(irq, pxa930_trkball_interrupt, IRQF_DISABLED, error = request_irq(irq, pxa930_trkball_interrupt, IRQF_DISABLED,
pdev->name, trkball); pdev->name, trkball);
if (error) { 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; goto failed_free_io;
} }
...@@ -227,7 +227,7 @@ failed_free_io: ...@@ -227,7 +227,7 @@ failed_free_io:
iounmap(trkball->mmio_base); iounmap(trkball->mmio_base);
failed: failed:
kfree(trkball); kfree(trkball);
return ret; return error;
} }
static int __devexit pxa930_trkball_remove(struct platform_device *pdev) static int __devexit pxa930_trkball_remove(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment