Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161744
b: refs/heads/master
c: fb2881a
h: refs/heads/master
v: v3
  • Loading branch information
roel kluin authored and Benjamin Herrenschmidt committed Aug 20, 2009
1 parent 4d1b3f9 commit f8c6703
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 14ea58ad797e4e9b7be755aca0fd3925d0713ede
refs/heads/master: fb2881a7134576a6e95a63e3d2f34ea5629db4a1
6 changes: 4 additions & 2 deletions trunk/drivers/macintosh/macio_asic.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,11 @@ static void macio_setup_interrupts(struct macio_dev *dev)
int i = 0, j = 0;

for (;;) {
struct resource *res = &dev->interrupt[j];
struct resource *res;

if (j >= MACIO_DEV_COUNT_IRQS)
break;
res = &dev->interrupt[j];
irq = irq_of_parse_and_map(np, i++);
if (irq == NO_IRQ)
break;
Expand All @@ -321,9 +322,10 @@ static void macio_setup_resources(struct macio_dev *dev,
int index;

for (index = 0; of_address_to_resource(np, index, &r) == 0; index++) {
struct resource *res = &dev->resource[index];
struct resource *res;
if (index >= MACIO_DEV_COUNT_RESOURCES)
break;
res = &dev->resource[index];
*res = r;
res->name = dev_name(&dev->ofdev.dev);

Expand Down

0 comments on commit f8c6703

Please sign in to comment.