Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110744946
D11880.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
D11880.id.diff
View Options
Index: head/sys/dev/ofw/ofw_bus_subr.c
===================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c
+++ head/sys/dev/ofw/ofw_bus_subr.c
@@ -720,22 +720,14 @@
ofw_bus_find_compatible(phandle_t node, const char *onecompat)
{
phandle_t child, ret;
- void *compat;
- int len;
/*
* Traverse all children of 'start' node, and find first with
* matching 'compatible' property.
*/
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
- len = OF_getprop_alloc(child, "compatible", 1, &compat);
- if (len >= 0) {
- ret = ofw_bus_node_is_compatible_int(compat, len,
- onecompat);
- free(compat, M_OFWPROP);
- if (ret != 0)
- return (child);
- }
+ if (ofw_bus_node_is_compatible(child, onecompat) != 0)
+ return (child);
ret = ofw_bus_find_compatible(child, onecompat);
if (ret != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 2:05 PM (4 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16798851
Default Alt Text
D11880.id.diff (877 B)
Attached To
Mode
D11880: Enable using ofw_bus_find_compatible in early platform code
Attached
Detach File
Event Timeline
Log In to Comment