soc/intel/apollolake: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Id6bcf98892c1944ec9c7e637f63c4c05fe9a0c07
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26520
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Elyes HAOUAS 2018-05-24 22:48:14 +02:00 committed by Kyösti Mälkki
parent b13fac37eb
commit 06e8315292
2 changed files with 7 additions and 7 deletions

View File

@ -155,7 +155,7 @@ const char *soc_acpi_name(const struct device *dev)
return NULL; return NULL;
} }
static void pci_domain_set_resources(device_t dev) static void pci_domain_set_resources(struct device *dev)
{ {
assign_resources(dev->link_list); assign_resources(dev->link_list);
} }
@ -178,7 +178,7 @@ static struct device_operations cpu_bus_ops = {
.acpi_fill_ssdt_generator = generate_cpu_entries, .acpi_fill_ssdt_generator = generate_cpu_entries,
}; };
static void enable_dev(device_t dev) static void enable_dev(struct device *dev)
{ {
/* Set the operations if it is a special bus type */ /* Set the operations if it is a special bus type */
if (dev->path.type == DEVICE_PATH_DOMAIN) if (dev->path.type == DEVICE_PATH_DOMAIN)
@ -196,7 +196,7 @@ static void enable_dev(device_t dev)
*/ */
static void pcie_update_device_tree(unsigned int devfn0, int num_funcs) static void pcie_update_device_tree(unsigned int devfn0, int num_funcs)
{ {
device_t func0; struct device *func0;
unsigned int devfn; unsigned int devfn;
int i; int i;
unsigned int inc = PCI_DEVFN(0, 1); unsigned int inc = PCI_DEVFN(0, 1);
@ -217,7 +217,7 @@ static void pcie_update_device_tree(unsigned int devfn0, int num_funcs)
* as that port was move to func0. * as that port was move to func0.
*/ */
for (i = 1; i < num_funcs; i++, devfn += inc) { for (i = 1; i < num_funcs; i++, devfn += inc) {
device_t dev = dev_find_slot(0, devfn); struct device *dev = dev_find_slot(0, devfn);
if (dev == NULL) if (dev == NULL)
continue; continue;

View File

@ -67,7 +67,7 @@ static const struct reg_script core_msr_script[] = {
REG_SCRIPT_END REG_SCRIPT_END
}; };
void soc_core_init(device_t cpu) void soc_core_init(struct device *cpu)
{ {
/* Clear out pending MCEs */ /* Clear out pending MCEs */
/* TODO(adurbin): This should only be done on a cold boot. Also, some /* TODO(adurbin): This should only be done on a cold boot. Also, some
@ -96,7 +96,7 @@ void soc_core_init(device_t cpu)
} }
#if !IS_ENABLED(CONFIG_SOC_INTEL_COMMON_BLOCK_CPU_MPINIT) #if !IS_ENABLED(CONFIG_SOC_INTEL_COMMON_BLOCK_CPU_MPINIT)
static void soc_init_core(device_t cpu) static void soc_init_core(struct device *cpu)
{ {
soc_core_init(cpu); soc_core_init(cpu);
} }
@ -283,7 +283,7 @@ void cpu_lock_sgx_memory(void)
int soc_fill_sgx_param(struct sgx_param *sgx_param) int soc_fill_sgx_param(struct sgx_param *sgx_param)
{ {
device_t dev = SA_DEV_ROOT; struct device *dev = SA_DEV_ROOT;
assert(dev != NULL); assert(dev != NULL);
config_t *conf = dev->chip_info; config_t *conf = dev->chip_info;