diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-06 20:32:23 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-22 07:24:23 +0000 |
commit | e348066bd867160ab1a3fdcd01129d978e719470 (patch) | |
tree | dfbb2291fa9281132137d52afe5a1e9d50417842 /src/device/pci_rom.c | |
parent | 996670377666eac27af4c4562d48677305e4e937 (diff) |
src/device: Get rid of device_t
Use of device_t has been abandoned in ramstage.
The function prototype for "struct device *add_cpu_device"
is already correct and doesn't need to be fixed.
Change-Id: I7bd8b93922f113bdaf7ba460acf6a7d62c4df013
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26067
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/pci_rom.c')
-rw-r--r-- | src/device/pci_rom.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c index 299f7c8bf7..35d3d69bd4 100644 --- a/src/device/pci_rom.c +++ b/src/device/pci_rom.c @@ -153,7 +153,7 @@ struct rom_header *pci_rom_load(struct device *dev, */ if (PCI_CLASS_DISPLAY_VGA == (dev->class >> 8)) { #if !IS_ENABLED(CONFIG_MULTIPLE_VGA_ADAPTERS) - extern device_t vga_pri; /* Primary VGA device (device.c). */ + extern struct device *vga_pri; /* Primary VGA device (device.c). */ if (dev != vga_pri) return NULL; /* Only one VGA supported. */ #endif if ((void *)PCI_VGA_RAM_IMAGE_START != rom_header) { @@ -202,9 +202,8 @@ static struct rom_header *check_initialized(struct device *dev) } static unsigned long -pci_rom_acpi_fill_vfct(struct device *device, - struct acpi_vfct *vfct_struct, - unsigned long current) +pci_rom_acpi_fill_vfct(struct device *device, struct acpi_vfct *vfct_struct, + unsigned long current) { struct acpi_vfct_image_hdr *header = &vfct_struct->image_hdr; struct rom_header *rom; @@ -238,9 +237,8 @@ pci_rom_acpi_fill_vfct(struct device *device, } unsigned long -pci_rom_write_acpi_tables(struct device *device, - unsigned long current, - struct acpi_rsdp *rsdp) +pci_rom_write_acpi_tables(struct device *device, unsigned long current, + struct acpi_rsdp *rsdp) { struct acpi_vfct *vfct; struct rom_header *rom; |