diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-10-24 16:50:05 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-10-27 16:52:01 +0000 |
commit | 68d234989b2d6bd8f255577e08bf8be0b1d197bb (patch) | |
tree | 44836a428f8333ba2302f474e9b8fa5413d5adab /OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c | |
parent | 0a64106c566273ff8ef951d56ddfa972fe65bd6c (diff) | |
download | edk2-68d234989b2d6bd8f255577e08bf8be0b1d197bb.tar.gz edk2-68d234989b2d6bd8f255577e08bf8be0b1d197bb.tar.bz2 edk2-68d234989b2d6bd8f255577e08bf8be0b1d197bb.zip |
OvmfPkg/VirtNorFlashDxe: remove disk I/O protocol implementation
We only use NOR flash for firmware volumes, either for executable images
or for the variable store. So we have no need for exposing disk I/O on
top of the NOR flash partitions so let's remove it.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Diffstat (limited to 'OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c')
-rw-r--r-- | OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c b/OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c index 819425545e..4875b057d5 100644 --- a/OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c +++ b/OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c @@ -59,12 +59,6 @@ NOR_FLASH_INSTANCE mNorFlashInstanceTemplate = { }, // Media;
{
- EFI_DISK_IO_PROTOCOL_REVISION, // Revision
- NorFlashDiskIoReadDisk, // ReadDisk
- NorFlashDiskIoWriteDisk // WriteDisk
- },
-
- {
FvbGetAttributes, // GetAttributes
FvbSetAttributes, // SetAttributes
FvbGetPhysicalAddress, // GetPhysicalAddress
@@ -159,8 +153,6 @@ NorFlashCreateInstance ( &Instance->DevicePath,
&gEfiBlockIoProtocolGuid,
&Instance->BlockIoProtocol,
- &gEfiDiskIoProtocolGuid,
- &Instance->DiskIoProtocol,
NULL
);
if (EFI_ERROR (Status)) {
|