Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232425
b: refs/heads/master
c: b0f05aa
h: refs/heads/master
i:
  232423: 9c4ff8f
v: v3
  • Loading branch information
Davidlohr Bueso authored and Dmitry Torokhov committed Jan 18, 2011
1 parent 7dde7a0 commit f6889ad
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: 81e78deafb21ba867eb244ab1117726c68d817f8
refs/heads/master: b0f05aadf1516c166ba301b7a535bc9429ce1961
8 changes: 5 additions & 3 deletions trunk/drivers/input/serio/ct82c710.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ static void ct82c710_close(struct serio *serio)
static int ct82c710_open(struct serio *serio)
{
unsigned char status;
int err;

if (request_irq(CT82C710_IRQ, ct82c710_interrupt, 0, "ct82c710", NULL))
return -1;
err = request_irq(CT82C710_IRQ, ct82c710_interrupt, 0, "ct82c710", NULL);
if (err)
return err;

status = inb_p(CT82C710_STATUS);

Expand All @@ -131,7 +133,7 @@ static int ct82c710_open(struct serio *serio)
status &= ~(CT82C710_ENABLE | CT82C710_INTS_ON);
outb_p(status, CT82C710_STATUS);
free_irq(CT82C710_IRQ, NULL);
return -1;
return -EBUSY;
}

return 0;
Expand Down

0 comments on commit f6889ad

Please sign in to comment.