diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-24 22:48:14 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-04 02:34:50 +0000 |
commit | 06e8315292bd550c986c0a93158480bd6756f73c (patch) | |
tree | e06900255744e65517406fc062d969a8f4b0c0d3 /src/soc/intel/apollolake/chip.c | |
parent | b13fac37ebfe9451229be1c3ebefd9c05f8afb49 (diff) |
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>
Diffstat (limited to 'src/soc/intel/apollolake/chip.c')
-rw-r--r-- | src/soc/intel/apollolake/chip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c index c49f73473e..24c7a599e5 100644 --- a/src/soc/intel/apollolake/chip.c +++ b/src/soc/intel/apollolake/chip.c @@ -155,7 +155,7 @@ const char *soc_acpi_name(const struct device *dev) 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); } @@ -178,7 +178,7 @@ static struct device_operations cpu_bus_ops = { .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 */ 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) { - device_t func0; + struct device *func0; unsigned int devfn; int i; 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. */ 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) continue; |