Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285251
b: refs/heads/master
c: affc9a0
h: refs/heads/master
i:
  285249: 9e30895
  285247: ddeca82
v: v3
  • Loading branch information
Ben Hutchings authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent 5dda7ba commit ffc03d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 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: 9b98d60679711753e548be15c6bef5239db6ed64
refs/heads/master: affc9a0d59ac49bd304e2137bd5e4ffdd6fdfa52
21 changes: 9 additions & 12 deletions trunk/drivers/staging/media/lirc/lirc_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,18 +843,15 @@ static int __devinit lirc_serial_probe(struct platform_device *dev)
result = request_irq(irq, irq_handler,
(share_irq ? IRQF_SHARED : 0),
LIRC_DRIVER_NAME, (void *)&hardware);

switch (result) {
case -EBUSY:
printk(KERN_ERR LIRC_DRIVER_NAME ": IRQ %d busy\n", irq);
return -EBUSY;
case -EINVAL:
printk(KERN_ERR LIRC_DRIVER_NAME
": Bad irq number or handler\n");
return -EINVAL;
default:
break;
};
if (result < 0) {
if (result == -EBUSY)
printk(KERN_ERR LIRC_DRIVER_NAME ": IRQ %d busy\n",
irq);
else if (result == -EINVAL)
printk(KERN_ERR LIRC_DRIVER_NAME
": Bad irq number or handler\n");
return result;
}

/* Reserve io region. */
/*
Expand Down

0 comments on commit ffc03d0

Please sign in to comment.