Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375136
b: refs/heads/master
c: d41d547
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Sverdlin authored and Ralf Baechle committed May 7, 2013
1 parent 5395bb2 commit d591d77
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f560fabdf3f3fe12bd48146a6ccdf03ddf9ab12c
refs/heads/master: d41d547a419ca2d4df867a40a553abfe0c3df1d6
5 changes: 2 additions & 3 deletions trunk/arch/mips/cavium-octeon/octeon-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,8 @@ static int octeon_irq_gpio_map_common(struct irq_domain *d,
if (!octeon_irq_virq_in_range(virq))
return -EINVAL;

hw += gpiod->base_hwirq;
line = hw >> 6;
bit = hw & 63;
line = (hw + gpiod->base_hwirq) >> 6;
bit = (hw + gpiod->base_hwirq) & 63;
if (line > line_limit || octeon_irq_ciu_to_irq[line][bit] != 0)
return -EINVAL;

Expand Down

0 comments on commit d591d77

Please sign in to comment.