Search for BGX node in DTS in two ways:
- Try to find it uder root node first
- If not found under root, find the top level PCI bridge node and search all nodes below it until appropriate BGX node is found.
Move search code to another function to make the code more clear.
Remove unused variable by the way.