Beispiel #1
0
EFI_STATUS
EFIAPI
ProcessModuleUnloadList (
  IN EFI_HANDLE        ImageHandle
  )
{
  return I2cBusUnload (ImageHandle);
}
Beispiel #2
0
/**
  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;
}