mb/google: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I8e549e4222ae2ed6b9c46f81c5b5253e8b227ee8
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26086
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Elyes HAOUAS 2018-05-04 20:23:33 +02:00 committed by Patrick Rudolph
parent 0db963a89e
commit d129d43ea7
40 changed files with 92 additions and 92 deletions

View File

@ -20,12 +20,12 @@
#include "variant.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static int mainboard_smbios_data(device_t dev, int *handle,
static int mainboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
return variant_smbios_data(dev, handle, current);
@ -34,7 +34,7 @@ static int mainboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = mainboard_smbios_data;

View File

@ -40,7 +40,7 @@ void mainboard_suspend_resume(void)
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
lan_init();
}
@ -48,7 +48,7 @@ static void mainboard_init(device_t dev)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -181,7 +181,7 @@ static void program_keyboard_type(u32 search_address, u32 search_length)
ec_mem_write(EC_KBID_REG, kbd_type);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
u32 search_address = 0x0;
size_t search_length = -1;
@ -254,7 +254,7 @@ static void mainboard_init(device_t dev)
}
}
static int butterfly_onboard_smbios_data(device_t dev, int *handle,
static int butterfly_onboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
int len = 0;
@ -274,7 +274,7 @@ static int butterfly_onboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = butterfly_onboard_smbios_data;

View File

@ -23,13 +23,13 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -66,7 +66,7 @@ static unsigned long mainboard_write_acpi_tables(
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
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;

View File

@ -17,12 +17,12 @@
#include <bootblock_common.h>
#include <timestamp.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -19,7 +19,7 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
@ -28,7 +28,7 @@ static void mainboard_init(device_t dev)
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -252,7 +252,7 @@ static void gpio_init(void)
}
/* this happens after cpu_init where exynos resources are set */
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
int dp_tries;
struct s5p_dp_device dp_device = {
@ -316,7 +316,7 @@ static void mainboard_init(device_t dev)
// gpio_info();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;

View File

@ -24,13 +24,13 @@
static const char *oem_id_maxim = "GOOGLE";
static const char *oem_table_id_maxim = "EVEMAX";
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -63,7 +63,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->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -227,13 +227,13 @@ const char *smbios_mainboard_sku(void)
return sku_str;
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
const char *oem_id = "GOOGLE";
const char *oem_table_id = "FIZZ";
@ -291,9 +291,9 @@ static void set_bj_adapter_limit(void)
printk(BIOS_ERR, "Failed to set BJ limit\n");
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
device_t root = SA_DEV_ROOT;
struct device *root = SA_DEV_ROOT;
config_t *conf = root->chip_info;
mainboard_set_power_limits(conf);

View File

@ -106,7 +106,7 @@ static void setup_audio(void)
clock_enable_audio();
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs));
soc_configure_funits(funitcfgs, ARRAY_SIZE(funitcfgs));
@ -115,7 +115,7 @@ static void mainboard_init(device_t dev)
setup_audio();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -37,7 +37,7 @@ static void setup_usb(void)
setup_usb_host1();
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* disable mmu and d-cache before setting up secure world.*/
dcache_mmu_disable();
@ -60,7 +60,7 @@ static void mainboard_init(device_t dev)
//audio_clock_config(6144000);
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -23,13 +23,13 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -70,7 +70,7 @@ static unsigned long mainboard_write_acpi_tables(
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
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;

View File

@ -333,7 +333,7 @@ static void setup_usb(int port)
usb_power_cycle(port);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
configure_sdmmc();
configure_emmc();
@ -689,7 +689,7 @@ const struct mipi_panel_data *mainboard_get_mipi_mode
}
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -25,7 +25,7 @@ void mainboard_suspend_resume(void)
outb(0xcb, 0xb2);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
lan_init();
}
@ -33,7 +33,7 @@ static void mainboard_init(device_t dev)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -184,7 +184,7 @@ static void mainboard_init(void *chip_info)
/*************************************************
* Dedicated mainboard function
*************************************************/
static void kahlee_enable(device_t dev)
static void kahlee_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard "
CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");

View File

@ -115,7 +115,7 @@ static void *smp_write_config_table(void *v)
/* on board NIC & Slot PCIE. */
/* PCI slots */
device_t dev = dev_find_slot(0, PCI_DEVFN(0x14, 4));
struct device *dev = dev_find_slot(0, PCI_DEVFN(0x14, 4));
if (dev && dev->enabled) {
u8 bus_pci = dev->link_list->secondary;
/* PCI_SLOT 0. */

View File

@ -23,13 +23,13 @@
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -66,7 +66,7 @@ static unsigned long mainboard_write_acpi_tables(
* mainboard_enable is executed as first thing after
* enumerate_buses().
*/
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;

View File

@ -141,7 +141,7 @@ static int int15_handler(void)
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* Initialize the Embedded Controller */
link_ec_init();
@ -158,7 +158,7 @@ static void mainboard_init(device_t dev)
}
}
static int link_onboard_smbios_data(device_t dev, int *handle,
static int link_onboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
int len = 0;
@ -196,7 +196,7 @@ static int link_onboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = link_onboard_smbios_data;

View File

@ -194,7 +194,7 @@ static void setup_ec_spi(void)
tegra_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
set_clock_sources();
@ -244,7 +244,7 @@ static void mainboard_init(device_t dev)
setup_ec_spi();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -194,7 +194,7 @@ static void setup_ec_spi(void)
tegra_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
set_clock_sources();
@ -242,7 +242,7 @@ static void mainboard_init(device_t dev)
setup_ec_spi();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -194,7 +194,7 @@ static void setup_ec_spi(void)
tegra_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
set_clock_sources();
@ -242,7 +242,7 @@ static void mainboard_init(device_t dev)
setup_ec_spi();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -311,7 +311,7 @@ static void display_startup(void)
set_vbe_mode_info_valid(&edid, (uintptr_t)0);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* TP_SHIFT_EN: Enables the level shifter for I2C bus 4 (TPAD), which
* also contains the PS8640 eDP brige and the USB hub.
@ -346,7 +346,7 @@ static void mainboard_init(device_t dev)
configure_touchscreen();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -42,7 +42,7 @@ static void mainboard_init(void *chip_info)
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -65,7 +65,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;

View File

@ -41,13 +41,13 @@ void mainboard_suspend_resume(void)
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* Initialize the Embedded Controller */
parrot_ec_init();
}
static int parrot_onboard_smbios_data(device_t dev, int *handle,
static int parrot_onboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
int len = 0;
@ -78,7 +78,7 @@ static int parrot_onboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = parrot_onboard_smbios_data;

View File

@ -399,7 +399,7 @@ static void sdmmc_vdd(void)
}
/* this happens after cpu_init where exynos resources are set */
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* we'll stick with the crummy u-boot struct for now.*/
/* doing this as an auto since the struct has to be writeable */
@ -456,7 +456,7 @@ static void mainboard_init(device_t dev)
setup_usb();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;

View File

@ -21,12 +21,12 @@
#include <soc/nhlt.h>
#include <vendorcode/google/chromeos/chromeos.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(device_t device,
static unsigned long mainboard_write_acpi_tables(struct device *device,
unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
@ -55,7 +55,7 @@ static unsigned long mainboard_write_acpi_tables(device_t device,
return end_addr;
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -42,7 +42,7 @@ void variant_devtree_update(void)
{
/* Override dev tree settings per board */
uint32_t sku_id = variant_board_sku();
device_t root = SA_DEV_ROOT;
struct device *root = SA_DEV_ROOT;
config_t *cfg = root->chip_info;
switch (sku_id) {
case SKU_1_VAYNE:

View File

@ -17,11 +17,11 @@
#include <boot/coreboot_tables.h>
#include <symbols.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -126,7 +126,7 @@ static int int15_handler(void)
}
#endif
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
#if IS_ENABLED(CONFIG_BOARD_GOOGLE_NINJA) || IS_ENABLED(CONFIG_BOARD_GOOGLE_SUMO)
@ -134,7 +134,7 @@ static void mainboard_init(device_t dev)
#endif
}
static int mainboard_smbios_data(device_t dev, int *handle,
static int mainboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
int len = 0;
@ -164,7 +164,7 @@ static int mainboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = mainboard_smbios_data;

View File

@ -108,7 +108,7 @@ void __weak variant_nhlt_oem_overrides(const char **oem_id,
}
static unsigned long mainboard_write_acpi_tables(
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
uintptr_t end_addr;
@ -136,7 +136,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;

View File

@ -15,12 +15,12 @@
#include <device/device.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* TODO: implement mainboard_init */
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -41,12 +41,12 @@ void mainboard_suspend_resume(void)
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static int mainboard_smbios_data(device_t dev, int *handle,
static int mainboard_smbios_data(struct device *dev, int *handle,
unsigned long *current)
{
int len = 0;
@ -84,7 +84,7 @@ static int mainboard_smbios_data(device_t dev, int *handle,
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->get_smbios_data = mainboard_smbios_data;

View File

@ -183,7 +183,7 @@ static void powergate_unused_partitions(void)
power_gate_partition(partitions[i]);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs));
soc_configure_funits(funits, ARRAY_SIZE(funits));
@ -200,12 +200,12 @@ static void mainboard_init(device_t dev)
powergate_unused_partitions();
}
void display_startup(device_t dev)
void display_startup(struct device *dev)
{
dsi_display_startup(dev);
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -76,7 +76,7 @@ static void assert_sw_reset(void)
gpio_set(SW_RESET_GPIO, 1);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
/* disable mmu and d-cache before setting up secure world.*/
dcache_mmu_disable();
@ -104,7 +104,7 @@ static void mainboard_init(device_t dev)
audio_clock_config(6144000);
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -42,7 +42,7 @@ void mainboard_suspend_resume(void)
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
struct device *ethernet_dev = NULL;
@ -64,7 +64,7 @@ static void mainboard_init(device_t dev)
// mainboard_enable is executed as first thing after
// enumerate_buses().
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;

View File

@ -21,7 +21,7 @@
#include <vendorcode/google/chromeos/chromeos.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
#if IS_ENABLED(CONFIG_CHROMEOS)
/* Copy WIFI calibration data into CBMEM. */
@ -29,7 +29,7 @@ static void mainboard_init(device_t dev)
#endif
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Enable Pistachio device...\n");
dev->ops->init = &mainboard_init;

View File

@ -99,7 +99,7 @@ static void configure_vop(void)
write32(&rk3288_grf->iomux_edp_hotplug, IOMUX_EDP_HOTPLUG);
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
gpio_output(GPIO_RESET, 0);
@ -110,7 +110,7 @@ static void mainboard_init(device_t dev)
configure_vop();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -78,7 +78,7 @@ static void configure_hdmi(void)
gpio_output(GPIO(7, B, 3), 1); /* POWER_HDMI_ON */
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
gpio_output(GPIO_RESET, 0);
@ -89,7 +89,7 @@ static void mainboard_init(device_t dev)
configure_hdmi();
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -75,7 +75,7 @@ static void configure_3g(void)
gpio_output(GPIO(4, D, 2), 0); /* 3G_ON_OFF */
}
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
gpio_output(GPIO_RESET, 0);
@ -94,7 +94,7 @@ static void mainboard_init(device_t dev)
}
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = &mainboard_init;
}

View File

@ -20,12 +20,12 @@
#include <arch/acpi.h>
#include <baseboard/variants.h>
static void mainboard_init(device_t dev)
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();
}
static unsigned long mainboard_write_acpi_tables(device_t device,
static unsigned long mainboard_write_acpi_tables(struct device *device,
unsigned long current, acpi_rsdp_t *rsdp)
{
uintptr_t start_addr;
@ -49,7 +49,7 @@ static unsigned long mainboard_write_acpi_tables(device_t device,
return end_addr;
}
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
dev->ops->init = mainboard_init;
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;