1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Make sure to get the right node when looking up #interrupt-cells.

This commit is contained in:
Nathan Whitehorn 2013-10-25 15:37:58 +00:00
parent 178cdf9a39
commit 6ad36cf2c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257118

View File

@ -464,8 +464,8 @@ nexus_setup_dinfo(device_t dev, phandle_t node)
iparent = 0;
OF_searchencprop(node, "interrupt-parent", &iparent,
sizeof(iparent));
OF_searchencprop(iparent, "#interrupt-cells", &icells,
sizeof(icells));
OF_searchencprop(OF_xref_phandle(iparent), "#interrupt-cells",
&icells, sizeof(icells));
for (i = 0; i < nintr; i+= icells) {
intr[i] = ofw_bus_map_intr(dev, iparent, intr[i]);
resource_list_add(&ndi->ndi_rl, SYS_RES_IRQ, i, intr[i],