kernel code reading: potential problem in pci_assign_unassigned_resources
kernel code test: reimplement the pci_bus_get_depth()

This patch implement the pci_bus_get_depth() in iteration instead of recursive
way.