diff --git a/sys/dev/bhnd/bhnd_subr.c b/sys/dev/bhnd/bhnd_subr.c --- a/sys/dev/bhnd/bhnd_subr.c +++ b/sys/dev/bhnd/bhnd_subr.c @@ -602,7 +602,8 @@ devclass_t bhndb_class; device_t parent; - KASSERT(device_get_devclass(device_get_parent(dev)) == bhnd_devclass, + KASSERT(device_get_devclass(device_get_parent(dev)) == + devclass_find("bhnd"), ("%s not a bhnd device", device_get_nameunit(dev))); bhndb_class = devclass_find("bhndb"); @@ -864,7 +865,7 @@ if (m_core.m.match_flags) { /* Only applicable to bhnd-attached cores */ parent = device_get_parent(dev); - if (device_get_devclass(parent) != bhnd_devclass) { + if (device_get_devclass(parent) != devclass_find("bhnd")) { device_printf(dev, "attempting to match core " "attributes against non-core device\n"); return (false);