summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/fdt_common.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2014-02-02 05:52:34 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2014-02-02 05:52:34 +0000
commit2cbbba8bf8ce7a218864fbd4c5a41c74fb21bcb6 (patch)
tree01e90cb183b482add7bfc5e98f85cded885b55be /sys/dev/fdt/fdt_common.c
parentc856bcd062828257af9de6ef8536833ad8aa66c9 (diff)
downloadFreeBSD-src-2cbbba8bf8ce7a218864fbd4c5a41c74fb21bcb6.zip
FreeBSD-src-2cbbba8bf8ce7a218864fbd4c5a41c74fb21bcb6.tar.gz
Fix missing offset.
Diffstat (limited to 'sys/dev/fdt/fdt_common.c')
-rw-r--r--sys/dev/fdt/fdt_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c
index 9365d79..33a137b 100644
--- a/sys/dev/fdt/fdt_common.c
+++ b/sys/dev/fdt/fdt_common.c
@@ -501,7 +501,8 @@ fdt_intr_to_rl(device_t dev, phandle_t node, struct resource_list *rl,
icells = 1;
}
for (i = 0, k = 0; i < nintr; i += icells, k++) {
- intr[i] = ofw_bus_map_intr(dev, iparent, icells, intr);
+ intr[i] = ofw_bus_map_intr(dev, iparent, icells,
+ &intr[i]);
resource_list_add(rl, SYS_RES_IRQ, k, intr[i], intr[i],
1);
}
OpenPOWER on IntegriCloud