Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199383
b: refs/heads/master
c: 165bce9
h: refs/heads/master
i:
  199381: 4ce672b
  199379: 9fca944
  199375: d583575
v: v3
  • Loading branch information
Dan Carpenter authored and Samuel Ortiz committed May 27, 2010
1 parent 0a66697 commit f7fc146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 2a0cb351001bebf195d3c43d0f70441eb6a62652
refs/heads/master: 165bce9783ab307368e56b7c1a168520a3791266
4 changes: 2 additions & 2 deletions trunk/drivers/mfd/pcf50633-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static struct attribute_group pcf_attr_group = {
int pcf50633_register_irq(struct pcf50633 *pcf, int irq,
void (*handler) (int, void *), void *data)
{
if (irq < 0 || irq > PCF50633_NUM_IRQ || !handler)
if (irq < 0 || irq >= PCF50633_NUM_IRQ || !handler)
return -EINVAL;

if (WARN_ON(pcf->irq_handler[irq].handler))
Expand All @@ -235,7 +235,7 @@ EXPORT_SYMBOL_GPL(pcf50633_register_irq);

int pcf50633_free_irq(struct pcf50633 *pcf, int irq)
{
if (irq < 0 || irq > PCF50633_NUM_IRQ)
if (irq < 0 || irq >= PCF50633_NUM_IRQ)
return -EINVAL;

mutex_lock(&pcf->lock);
Expand Down

0 comments on commit f7fc146

Please sign in to comment.