SecurityPkg Tpm2DeviceLibDTpm: Update enum type name to match the one in lib
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibDTpm / Tpm2DeviceLibDTpm.c
index e6fe563..e9dad4a 100644 (file)
@@ -162,7 +162,7 @@ Tpm2DeviceLibConstructor (
     PcdSet8S(PcdActiveTpmInterfaceType, PtpInterface);\r
   }\r
 \r
-  if (PcdGet8(PcdActiveTpmInterfaceType) == PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
+  if (PcdGet8(PcdActiveTpmInterfaceType) == Tpm2PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
     IdleByPass = Tpm2GetIdleByPass((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress));\r
     PcdSet8S(PcdCRBIdleByPass, IdleByPass);\r
   }\r