diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 20:17:55 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2018-05-08 17:51:00 +0000 |
commit | 5bb159a6cf588e0408aa3c56d61242a9f6e803d5 (patch) | |
tree | dc4a96562ed4dd7abcfa0ab41cb75368be02ed19 /src/mainboard/getac | |
parent | 6c5925909dac3b743d6062fc6a45f0e5e992ffaf (diff) |
mb/getac: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ie5ed621423315388e2b8eb3d5433ef2a7a47d602
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26083
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/getac')
-rw-r--r-- | src/mainboard/getac/p470/acpi_tables.c | 2 | ||||
-rw-r--r-- | src/mainboard/getac/p470/mainboard.c | 6 | ||||
-rw-r--r-- | src/mainboard/getac/p470/mainboard.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/getac/p470/acpi_tables.c b/src/mainboard/getac/p470/acpi_tables.c index 34d6f3494a..f84060540e 100644 --- a/src/mainboard/getac/p470/acpi_tables.c +++ b/src/mainboard/getac/p470/acpi_tables.c @@ -81,7 +81,7 @@ static long acpi_create_ecdt(acpi_ecdt_t * ecdt) return header->length; } -unsigned long mainboard_write_acpi_tables(device_t device, +unsigned long mainboard_write_acpi_tables(struct device *device, unsigned long start, acpi_rsdp_t *rsdp) { diff --git a/src/mainboard/getac/p470/mainboard.c b/src/mainboard/getac/p470/mainboard.c index 90e8a9428a..140423e0e1 100644 --- a/src/mainboard/getac/p470/mainboard.c +++ b/src/mainboard/getac/p470/mainboard.c @@ -58,7 +58,7 @@ static void pcie_limit_power(void) // machine. It should set the slot numbers and enable power // limitation for the PCIe slots. - device_t dev; + struct device *dev; dev = dev_find_slot(0, PCI_DEVFN(28,0)); if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0); @@ -75,7 +75,7 @@ static void pcie_limit_power(void) } -static void mainboard_init(device_t dev) +static void mainboard_init(struct device *dev) { ec_enable(); install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_TXT_STRETCH, 0, 3); @@ -83,7 +83,7 @@ static void mainboard_init(device_t dev) // mainboard_enable is executed as first thing after // enumerate_buses(). Is there no mainboard_init()? -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; dev->ops->write_acpi_tables = mainboard_write_acpi_tables; diff --git a/src/mainboard/getac/p470/mainboard.h b/src/mainboard/getac/p470/mainboard.h index 56f54555ad..3d155c8787 100644 --- a/src/mainboard/getac/p470/mainboard.h +++ b/src/mainboard/getac/p470/mainboard.h @@ -1,5 +1,5 @@ struct acpi_rsdp; -unsigned long mainboard_write_acpi_tables(device_t device, +unsigned long mainboard_write_acpi_tables(struct device *device, unsigned long start, struct acpi_rsdp *rsdp); |