diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-22 10:42:28 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-05-24 18:38:25 +0000 |
commit | 17a3ceb2feb74ffbe4c039aecb4ec3ea2aca910c (patch) | |
tree | 99473a053ee233ec8a3b55ae960a0e3d050b51ed /src/soc/intel/baytrail/chip.c | |
parent | 148b1db9c968b4e1de768ecf3dffa3996aecccbe (diff) | |
download | coreboot-17a3ceb2feb74ffbe4c039aecb4ec3ea2aca910c.tar.xz |
soc/intel/baytrail: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I8b2cfe3e2090fb8eed755e40d337c6049d8dd96e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26456
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/baytrail/chip.c')
-rw-r--r-- | src/soc/intel/baytrail/chip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/soc/intel/baytrail/chip.c b/src/soc/intel/baytrail/chip.c index dab2cd199f..94a5a8ec14 100644 --- a/src/soc/intel/baytrail/chip.c +++ b/src/soc/intel/baytrail/chip.c @@ -22,7 +22,7 @@ #include <soc/ramstage.h> #include "chip.h" -static void pci_domain_set_resources(device_t dev) +static void pci_domain_set_resources(struct device *dev) { assign_resources(dev->link_list); } @@ -44,7 +44,7 @@ static struct device_operations cpu_bus_ops = { }; -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) { @@ -72,7 +72,8 @@ struct chip_operations soc_intel_baytrail_ops = { .init = soc_init, }; -static void pci_set_subsystem(device_t dev, unsigned vendor, unsigned device) +static void pci_set_subsystem(struct device *dev, unsigned vendor, + unsigned device) { if (!vendor || !device) { pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID, |