Skip to contentSkip to conversation

Problems with of_find_compatible_node

DISCUSSION chrishell 1 participant 1 message Oct 1, 2013

lore
Share & tools
lore

chrishell

author
#0 lore raw

Hello out there,
I got a problem with the kernel function "of_find_compatible_node". I
use it with: np = of_find_compatible_node(NULL,NULL,
"xilinx,cpld-led"); or with np = of_find_compatible_node(NULL,NULL,
"cpld-led"); but none of this works, because I get a null-pointer back. But it suppose to work? The target is a PPC-walnut-board. Which is the mechanism behind this function, which namespace is parsed in order to detect devices on the board? Can I parse the whole namespace in order to list up all devices?

What else can I do to solve this problem?

Thank you in advance...

Regards /chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131001/c67fb87b/attachment.bin