]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyIde.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / LegacyIde.c
index 255baf08c69601c65d131a98ee66206816de5e25..6a26157e548d787bd0bc6a9a29dfbb18d579bf2c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Collect IDE information from Native EFI Driver\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -76,7 +76,7 @@ LegacyBiosBuildIdeData (
                                           (VOID *) &LocalHddInfo\r
                                           );\r
   if (!EFI_ERROR (Status)) {\r
-    IdeController = HandleBuffer[0];    \r
+    IdeController = HandleBuffer[0];\r
     //\r
     // Force IDE drive spin up!\r
     //\r
@@ -279,9 +279,9 @@ InitLegacyIdeController (
   // and has PCI I/O resources allocated\r
   //\r
   Status = gBS->HandleProtocol (\r
-                  IdeController, \r
-                  &gEfiPciIoProtocolGuid, \r
-                  &PciIo\r
+                  IdeController,\r
+                  &gEfiPciIoProtocolGuid,\r
+                  (VOID **)&PciIo\r
                   );\r
   if (EFI_ERROR (Status)) {\r
     return ;\r