diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-11-16 21:30:58 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-11-17 18:34:56 +0100 |
commit | 6dead8d5af5d1bb1624bd9c1a39383704d8c31f8 (patch) | |
tree | d390809029b4c87e89c59e91ae92bc21c831ca8c /OvmfPkg | |
parent | d41fd8e839a31e6374cf37c8516311db4e4a3dbc (diff) | |
download | edk2-6dead8d5af5d1bb1624bd9c1a39383704d8c31f8.zip edk2-6dead8d5af5d1bb1624bd9c1a39383704d8c31f8.tar.gz edk2-6dead8d5af5d1bb1624bd9c1a39383704d8c31f8.tar.bz2 |
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c index 5435767..74f4d9c 100644 --- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c +++ b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c @@ -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;
}
/**
|