summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/fdt_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fdt/fdt_common.c')
-rw-r--r--sys/dev/fdt/fdt_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c
index df902f9..29da675 100644
--- a/sys/dev/fdt/fdt_common.c
+++ b/sys/dev/fdt/fdt_common.c
@@ -529,8 +529,8 @@ fdt_intr_to_rl(phandle_t node, struct resource_list *rl,
debugf("decoded intr = %d, trig = %d, pol = %d\n", interrupt,
trig, pol);
- intr_sl[intr_num].trig = trig;
- intr_sl[intr_num].pol = pol;
+ intr_sl[i].trig = trig;
+ intr_sl[i].pol = pol;
resource_list_add(rl, SYS_RES_IRQ, i, interrupt, interrupt, 1);
}
OpenPOWER on IntegriCloud