]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/XenAcpiPlatformDxe/AcpiPlatform.c
OvmfPkg/XenAcpiPlatformDxe: remove the InstallAcpiTable() helper function
[mirror_edk2.git] / OvmfPkg / XenAcpiPlatformDxe / AcpiPlatform.c
index 66dcf885859e2a14ad738c4f48fbb6211fd11284..daf2bf3f458a4241ff63e6a5179b0b8a63625390 100644 (file)
 \r
 #include "AcpiPlatform.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-InstallAcpiTable (\r
-  IN   EFI_ACPI_TABLE_PROTOCOL       *AcpiProtocol,\r
-  IN   VOID                          *AcpiTableBuffer,\r
-  IN   UINTN                         AcpiTableBufferSize,\r
-  OUT  UINTN                         *TableKey\r
-  )\r
-{\r
-  return AcpiProtocol->InstallAcpiTable (\r
-                         AcpiProtocol,\r
-                         AcpiTableBuffer,\r
-                         AcpiTableBufferSize,\r
-                         TableKey\r
-                         );\r
-}\r
-\r
-\r
 /**\r
   Locate the first instance of a protocol.  If the protocol requested is an\r
   FV protocol, then it will return the first FV that contains the ACPI table\r
@@ -200,12 +182,12 @@ InstallOvmfFvTables (
       //\r
       // Install ACPI table\r
       //\r
-      Status = InstallAcpiTable (\r
-                 AcpiTable,\r
-                 CurrentTable,\r
-                 TableSize,\r
-                 &TableHandle\r
-                 );\r
+      Status = AcpiTable->InstallAcpiTable (\r
+                            AcpiTable,\r
+                            CurrentTable,\r
+                            TableSize,\r
+                            &TableHandle\r
+                            );\r
 \r
       //\r
       // Free memory allocated by ReadSection\r