}\r
\r
/**\r
- Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge\r
+ Start to manage the PCI device on the specified root bridge or PCI-PCI Bridge.\r
\r
@param Controller The root bridge handle.\r
@param RootBridge A pointer to the PCI_IO_DEVICE.\r
@retval EFI_NOT_READY Device is not allocated.\r
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.\r
@retval EFI_NOT_FOUND Can not find the specific device.\r
- @retval EFI_SUCCESS Success to start Pci device on bridge.\r
+ @retval EFI_SUCCESS Success to start Pci devices on bridge.\r
\r
**/\r
EFI_STATUS\r
LIST_ENTRY *CurrentLink;\r
UINT64 Supports;\r
\r
+ PciIoDevice = NULL;\r
CurrentLink = RootBridge->ChildList.ForwardLink;\r
\r
while (CurrentLink != NULL && CurrentLink != &RootBridge->ChildList) {\r
}\r
}\r
\r
- return EFI_NOT_FOUND;\r
+ if (PciIoDevice == NULL) {\r
+ return EFI_NOT_FOUND;\r
+ } else {\r
+ return EFI_SUCCESS;\r
+ }\r
}\r
\r
/**\r