Rename Protocol->Register() to Protocol->Install()
This commit is contained in:
@@ -56,5 +56,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
XtLdrProto->Boot.RegisterProtocol(L"XTOS", &DummyGuid);
|
||||
|
||||
/* Register DUMMY protocol as XTOS boot protocol */
|
||||
return XtLdrProto->Protocol.Register(&DummyGuid, &BlpDummyProtocol);
|
||||
return XtLdrProto->Protocol.Install(&DummyGuid, &BlpDummyProtocol);
|
||||
}
|
||||
|
@@ -251,5 +251,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
XtFramebufferProtocol.PrintDisplayInformation = FbPrintDisplayInformation;
|
||||
|
||||
/* Register XTOS boot protocol */
|
||||
return XtLdrProtocol->Protocol.Register(&Guid, &XtFramebufferProtocol);
|
||||
return XtLdrProtocol->Protocol.Install(&Guid, &XtFramebufferProtocol);
|
||||
}
|
||||
|
@@ -603,5 +603,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
XtPeCoffProtocol.RelocateImage = PeRelocateImage;
|
||||
|
||||
/* Register PE/COFF protocol */
|
||||
return XtLdrProtocol->Protocol.Register(&Guid, &XtPeCoffProtocol);
|
||||
return XtLdrProtocol->Protocol.Install(&Guid, &XtPeCoffProtocol);
|
||||
}
|
||||
|
@@ -542,5 +542,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
XtLdrProtocol->Boot.RegisterProtocol(L"XTOS", &Guid);
|
||||
|
||||
/* Install XTOS protocol */
|
||||
return XtLdrProtocol->Protocol.Register(&Guid, &XtBootProtocol);
|
||||
return XtLdrProtocol->Protocol.Install(&Guid, &XtBootProtocol);
|
||||
}
|
||||
|
Reference in New Issue
Block a user