video: Use a local mode_info struct in the EFI driver

There is no need to use the global struct provided by PCI. Declare a
local structure instead, so this can be used on ARM without including
support for PCI ROMs.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-02-14 20:22:24 -07:00
parent 219a52d7fa
commit 2eaf5b3b51

View File

@@ -183,6 +183,7 @@ static int efi_video_probe(struct udevice *dev)
{
struct video_uc_plat *plat = dev_get_uclass_plat(dev);
struct video_priv *uc_priv = dev_get_uclass_priv(dev);
struct vesa_state mode_info;
struct vesa_mode_info *vesa = &mode_info.vesa;
u64 fb;
int ret;