示例#1
0
文件: AutoGen.c 项目: lihas/UEFI
EFI_STATUS
EFIAPI
ProcessModuleUnloadList (
  IN EFI_HANDLE        ImageHandle
  )
{
  return I2cBusUnload (ImageHandle);
}
示例#2
0
文件: I2cDxe.c 项目: lersek/edk2
/**
  This is the unload handle for I2C module.

  Disconnect the driver specified by ImageHandle from all the devices in the handle database.
  Uninstall all the protocols installed in the driver entry point.

  @param[in] ImageHandle           The drivers' driver image.

  @retval    EFI_SUCCESS           The image is unloaded.
  @retval    Others                Failed to unload the image.

**/
EFI_STATUS
EFIAPI
I2cUnload (
  IN EFI_HANDLE             ImageHandle
  )
{
  EFI_STATUS                        Status;

  //
  //  Disconnect the drivers
  //
  Status = I2cBusUnload ( ImageHandle );
  if ( !EFI_ERROR ( Status )) {
    Status = I2cHostUnload ( ImageHandle );
  }
  return Status;
}