From 5cb876cc1fef34e238e37facb36a77dbc45ced9a Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Fri, 8 Jun 2018 18:31:43 +0200 Subject: mainboard: Get rid of device_t in ramstage Use of device_t has been abandoned in ramstage. Change-Id: I07e00afbbd2c19cf3ea6e08f228eb39e45f1ad0c Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26983 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/mainboard/intel/cannonlake_rvp/mainboard.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainboard/intel') diff --git a/src/mainboard/intel/cannonlake_rvp/mainboard.c b/src/mainboard/intel/cannonlake_rvp/mainboard.c index 316485d6e6..3dbae702e2 100644 --- a/src/mainboard/intel/cannonlake_rvp/mainboard.c +++ b/src/mainboard/intel/cannonlake_rvp/mainboard.c @@ -31,8 +31,9 @@ static void mainboard_init(void *chip_info) gpio_configure_pads(pads, num); } -static unsigned long mainboard_write_acpi_tables( - device_t device, unsigned long current, acpi_rsdp_t *rsdp) +static unsigned long mainboard_write_acpi_tables(struct device *device, + unsigned long current, + acpi_rsdp_t *rsdp) { uintptr_t start_addr; uintptr_t end_addr; @@ -55,7 +56,7 @@ static unsigned long mainboard_write_acpi_tables( return end_addr; } -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { dev->ops->write_acpi_tables = mainboard_write_acpi_tables; dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator; -- cgit v1.2.3