OvmfPkg: make PlatformDebugLibIoPort a proper BASE library

Remove Uefi.h, which includes UefiSpec.h, and change the
return value to match the RETURN_STATUS type.

Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen (Intel address) <jordan.l.justen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Paolo Bonzini 2017-11-16 21:30:58 +01:00 committed by Laszlo Ersek
parent d41fd8e839
commit 6dead8d5af
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@
**/
#include <Base.h>
#include <Uefi.h>
#include <Library/DebugLib.h>
#include <Library/BaseLib.h>
#include <Library/IoLib.h>
@ -32,7 +31,7 @@
/**
This constructor function does not have to do anything.
@retval EFI_SUCCESS The constructor always returns RETURN_SUCCESS.
@retval RETURN_SUCCESS The constructor always returns RETURN_SUCCESS.
**/
RETURN_STATUS
@ -41,7 +40,7 @@ PlatformDebugLibIoPortConstructor (
VOID
)
{
return EFI_SUCCESS;
return RETURN_SUCCESS;
}
/**