Page MenuHomeFreeBSD

D35058.diff
No OneTemporary

D35058.diff

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);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 11:18 AM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14736970
Default Alt Text
D35058.diff (825 B)

Event Timeline