mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
parent
283135c9cd
commit
81a78cf1d0
@ -1035,7 +1035,7 @@ const struct of_device_id *of_match_device(const struct of_device_id *matches,
|
||||
const struct device *dev)
|
||||
{
|
||||
const char * compatible = (const char*) of_get_property(dev->of_node, "compatible", 0);
|
||||
for (; matches && matches->compatible; matches++)
|
||||
for (; matches && matches->compatible[0]; matches++)
|
||||
if (Genode::strcmp(matches->compatible, compatible) == 0)
|
||||
return matches;
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user