summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2010-07-11 20:33:39 +0000
committerraj <raj@FreeBSD.org>2010-07-11 20:33:39 +0000
commitb8fb1a2a997e2ab6cc90303cfcaacbebe4f191b5 (patch)
tree74c1e283d83296cbf34c32179a7723aa5e0bb437 /sys/dev/fdt
parentdba53e0271ac51dc75a05fa46e3e2d87133fec9c (diff)
downloadFreeBSD-src-b8fb1a2a997e2ab6cc90303cfcaacbebe4f191b5.zip
FreeBSD-src-b8fb1a2a997e2ab6cc90303cfcaacbebe4f191b5.tar.gz
Save fdtbus trigger / polarity data at their correct index.
Diffstat (limited to 'sys/dev/fdt')
-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