]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Universal/MmcDxe/Mmc.c
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / EmbeddedPkg / Universal / MmcDxe / Mmc.c
index 9327bd6337a16b27b2caf088544760c68e53f149..3b9dc187276ce190e8200c751b89aa3893a41871 100644 (file)
@@ -2,14 +2,14 @@
   Main file of the MMC Dxe driver. The driver entrypoint is defined into this file.\r
 \r
   Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
-  \r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -171,6 +171,9 @@ EFI_STATUS DestroyMmcHostInstance (
   if (MmcHostInstance->BlockIo.Media) {\r
     FreePool(MmcHostInstance->BlockIo.Media);\r
   }\r
+  if (MmcHostInstance->CardInfo.ECSDData) {\r
+    FreePages (MmcHostInstance->CardInfo.ECSDData, EFI_SIZE_TO_PAGES (sizeof (ECSD)));\r
+  }\r
   FreePool (MmcHostInstance);\r
 \r
   return Status;\r
@@ -246,7 +249,7 @@ MmcDriverBindingSupported (
 }\r
 \r
 /**\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -306,7 +309,7 @@ MmcDriverBindingStart (
 }\r
 \r
 /**\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -398,7 +401,7 @@ EFI_DRIVER_BINDING_PROTOCOL gMmcDriverBinding = {
 };\r
 \r
 /**\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -442,8 +445,8 @@ MmcDxeInitialize (
                 CheckCardsCallback,\r
                 NULL,\r
                 &gCheckCardsEvent);\r
-  ASSERT_EFI_ERROR (Status);  \r
-              \r
+  ASSERT_EFI_ERROR (Status);\r
+\r
   Status = gBS->SetTimer(\r
                 gCheckCardsEvent,\r
                 TimerPeriodic,\r