Index: sys/dev/ofw/openfirm.c =================================================================== --- sys/dev/ofw/openfirm.c +++ sys/dev/ofw/openfirm.c @@ -154,15 +154,15 @@ SYSINIT(xrefinfo, SI_SUB_KMEM, SI_ORDER_ANY, xrefinfo_init, NULL); static struct xrefinfo * -xrefinfo_find(phandle_t phandle, int find_by) +xrefinfo_find(uintptr_t phandle, int find_by) { struct xrefinfo *rv, *xi; rv = NULL; mtx_lock(&xreflist_lock); SLIST_FOREACH(xi, &xreflist, next_entry) { - if ((find_by == FIND_BY_XREF && phandle == xi->xref) || - (find_by == FIND_BY_NODE && phandle == xi->node) || + if ((find_by == FIND_BY_XREF && (phandle_t)phandle == xi->xref) || + (find_by == FIND_BY_NODE && (phandle_t)phandle == xi->node) || (find_by == FIND_BY_DEV && phandle == (uintptr_t)xi->dev)) { rv = xi; break;