summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2017-03-02 23:40:59 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2017-03-02 23:40:59 +0800
commitbc709a47a5bdac859457055edd337edef6f7d545 (patch)
treef92e2e53288c27c49b621dde93b43b8f2ac69db6
parent60170a9cba1c1831e235fc927a8506f6612d8f0f (diff)
downloadedk2-bc709a47a5bdac859457055edd337edef6f7d545.tar.gz
Revert "Ufs: debug on enabling GPT"
This reverts commit ee0b05ba60286a75399f8ce851cfb26cb539e652.
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c20
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf1
2 files changed, 0 insertions, 21 deletions
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
index 65f7223bb..761dc8ee1 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
@@ -12,7 +12,6 @@
**/
#include "UfsPassThru.h"
-#include <Protocol/DevicePathToText.h>
//
// Template for Ufs Pass Thru private data.
@@ -787,25 +786,6 @@ UfsPassThruDriverBindingStart (
DEBUG ((EFI_D_INFO, "==UfsPassThru Start== Controller = %x\n", Controller));
- {
- // We convert back to the text representation of the device Path
- EFI_DEVICE_PATH_TO_TEXT_PROTOCOL *DevicePathToTextProtocol;
- CHAR16 *DevicePathTxt;
-
- DevicePathToTextProtocol = NULL;
- gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **) &DevicePathToTextProtocol);
- if (DevicePathToTextProtocol != NULL) {
- DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText (RemainingDevicePath, TRUE, TRUE);
-
- //DEBUG((EFI_D_ERROR,"Device Path '%s'.\n", DevicePathTxt));
-
- if (DevicePathTxt != NULL) {
- FreePool (DevicePathTxt);
- } else {
- return EFI_NOT_READY;
- }
- }
- }
Status = gBS->OpenProtocol (
Controller,
&gEdkiiUfsHostControllerProtocolGuid,
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf
index e57d9a42b..254f51a26 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe.inf
@@ -58,7 +58,6 @@
[Protocols]
gEfiExtScsiPassThruProtocolGuid ## BY_START
gEdkiiUfsHostControllerProtocolGuid ## TO_START
- gEfiDevicePathToTextProtocolGuid
[UserExtensions.TianoCore."ExtraFiles"]
UfsPassThruExtra.uni