[edk2-devel] [edk2-platforms Patch 06/14] Vlv2TbltDevicePkg: Remove use of PS/2 Policy Protocol

Michael D Kinney michael.d.kinney at intel.com
Mon Jul 1 02:55:45 UTC 2019


This platform does not have a PS/2 controller, so remove all
references to the PS/2 Policy Protocol.

Cc: Zailiang Sun <zailiang.sun at intel.com>
Cc: Yi Qian <yi.qian at intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney at intel.com>
---
 .../Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
index cb280764b3..13d904b834 100644
--- a/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
+++ b/Platform/Intel/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
@@ -37,7 +37,6 @@ Abstract:
 #include <Guid/BoardFeatures.h>
 #include <Protocol/AcpiSupport.h>
 #include <Protocol/AcpiS3Save.h>
-#include <Protocol/Ps2Policy.h>
 #include <Library/CpuIA32.h>
 #include <SetupMode.h>
 #include <Guid/AcpiTableStorage.h>
@@ -772,7 +771,6 @@ AcpiPlatformEntryPoint (
   UINTN                         VarSize;
   UINTN                         SysCfgSize;
   EFI_HANDLE                    Handle;
-  EFI_PS2_POLICY_PROTOCOL       *Ps2Policy;
   EFI_PEI_HOB_POINTERS          GuidHob;
   EFI_MP_SERVICES_PROTOCOL      *MpService;
   UINTN                         MaximumNumberOfCPUs;
@@ -1131,19 +1129,6 @@ AcpiPlatformEntryPoint (
   //
   mGlobalNvsArea.Area->WPCN381U = GLOBAL_NVS_DEVICE_DISABLE;
   mGlobalNvsArea.Area->DockedSioPresent = GLOBAL_NVS_DEVICE_DISABLE;
-
-  //
-  // Get Ps2 policy to set. Will be use if present.
-  //
-  Status =  gBS->LocateProtocol (
-                   &gEfiPs2PolicyProtocolGuid,
-                   NULL,
-                   (VOID **)&Ps2Policy
-                   );
-  if (!EFI_ERROR (Status)) {
-          Status = Ps2Policy->Ps2InitHardware (ImageHandle);
-  }
-
   mGlobalNvsArea.Area->SDIOMode = mSystemConfiguration.LpssSdioMode;
 
   Handle = NULL;
-- 
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#43065): https://edk2.groups.io/g/devel/message/43065
Mute This Topic: https://groups.io/mt/32267621/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list