Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177088
b: refs/heads/master
c: 909275b
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Dmitry Torokhov committed Dec 15, 2009
1 parent dc48cf8 commit 429c84b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d201fd5dfb22801b6b012bb9f58cd186e4690d98
refs/heads/master: 909275bc1b42b4f4505ccbe193b111e9d1c5816f
8 changes: 5 additions & 3 deletions trunk/drivers/input/serio/altera_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int __devinit altera_ps2_probe(struct platform_device *pdev)
{
struct ps2if *ps2if;
struct serio *serio;
int error;
int error, irq;

ps2if = kzalloc(sizeof(struct ps2if), GFP_KERNEL);
serio = kzalloc(sizeof(struct serio), GFP_KERNEL);
Expand All @@ -108,11 +108,13 @@ static int __devinit altera_ps2_probe(struct platform_device *pdev)
goto err_free_mem;
}

ps2if->irq = platform_get_irq(pdev, 0);
if (ps2if->irq < 0) {

irq = platform_get_irq(pdev, 0);
if (irq < 0) {
error = -ENXIO;
goto err_free_mem;
}
ps2if->irq = irq;

if (!request_mem_region(ps2if->iomem_res->start,
resource_size(ps2if->iomem_res), pdev->name)) {
Expand Down

0 comments on commit 429c84b

Please sign in to comment.