soc/intel/quark: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I102c9b9b1066064589149388d5ebbcd6d0d81fa7
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26542
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Elyes HAOUAS 2018-05-25 13:11:37 +02:00 committed by Patrick Georgi
parent d6cd255321
commit 696545db7b
6 changed files with 7 additions and 7 deletions

View File

@ -121,7 +121,7 @@ static void chip_init(void *chip_info)
fsp_silicon_init(romstage_handoff_is_resume());
}
static void pci_domain_set_resources(device_t dev)
static void pci_domain_set_resources(struct device *dev)
{
assign_resources(dev->link_list);
}
@ -132,7 +132,7 @@ static struct device_operations pci_domain_ops = {
.scan_bus = pci_domain_scan_bus,
};
static void chip_enable_dev(device_t dev)
static void chip_enable_dev(struct device *dev)
{
/* Set the operations if it is a special bus type */

View File

@ -107,7 +107,7 @@ static const struct reg_script usb_device_port_init_script[] = {
REG_SCRIPT_END
};
static void init(device_t dev)
static void init(struct device *dev)
{
if ((dev->path.pci.devfn & 7) == EHCI_FUNC) {
printk(BIOS_INFO, "Initializing USB PLLs\n");

View File

@ -24,7 +24,7 @@
#include <soc/ramstage.h>
#include <soc/reg_access.h>
__weak void mainboard_gpio_i2c_init(device_t dev)
__weak void mainboard_gpio_i2c_init(struct device *dev)
{
/* Initialize any of the GPIOs or I2C devices */
printk(BIOS_SPEW, "WEAK; mainboard_gpio_i2c_init\n");

View File

@ -22,7 +22,7 @@
#include <soc/pm.h>
#include <soc/ramstage.h>
static void pmc_read_resources(device_t dev)
static void pmc_read_resources(struct device *dev)
{
unsigned int index = 0;
struct resource *res;

View File

@ -24,7 +24,7 @@
#define RES_IN_KIB(r) ((r) >> 10)
static void nc_read_resources(device_t dev)
static void nc_read_resources(struct device *dev)
{
unsigned long base_k;
int index = 0;

View File

@ -232,7 +232,7 @@ void spi_init(void)
uint32_t bios_control;
struct spi_context *context;
volatile struct flash_ctrlr *ctrlr;
device_t dev;
struct device *dev;
uint32_t rcba;
/* Determine the base address of the SPI flash controller */