Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102982228
D35058.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
825 B
Referenced Files
None
Subscribers
None
D35058.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D35058: bhnd: Use devclass_find to lookup devclass for bhnd.
Attached
Detach File
Event Timeline
Log In to Comment