Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/23654
Change subject: nb/intel/i945: Get rid off device_t ......................................................................
nb/intel/i945: Get rid off device_t
Use of `device_t`has been abandoned in ramstage
Change-Id: I2cc938958097e416b85f6592cb8a4e645a3746ed Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/northbridge/intel/i945/acpi.c M src/northbridge/intel/i945/gma.c M src/northbridge/intel/i945/northbridge.c 3 files changed, 10 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/23654/1
diff --git a/src/northbridge/intel/i945/acpi.c b/src/northbridge/intel/i945/acpi.c index c1a3d17..990d3de 100644 --- a/src/northbridge/intel/i945/acpi.c +++ b/src/northbridge/intel/i945/acpi.c @@ -29,7 +29,7 @@
unsigned long acpi_fill_mcfg(unsigned long current) { - device_t dev; + struct device *dev; u32 pciexbar = 0; u32 pciexbar_reg; int max_buses; diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c index 8d60bc9..da9c1e2 100644 --- a/src/northbridge/intel/i945/gma.c +++ b/src/northbridge/intel/i945/gma.c @@ -739,7 +739,7 @@ pci_write_config8(dev, 0xf4, 0xff); }
-static void gma_set_subsystem(device_t dev, unsigned int vendor, +static void gma_set_subsystem(struct device *dev, unsigned int vendor, unsigned int device) { if (!vendor || !device) { @@ -763,7 +763,7 @@ return &chip->gfx; }
-static void gma_ssdt(device_t device) +static void gma_ssdt(struct device *device) { const struct i915_gpu_controller_info *gfx = intel_gma_get_controller_info(); if (!gfx) @@ -772,7 +772,7 @@ drivers_intel_gma_displays_ssdt_generate(gfx); }
-static void gma_func0_read_resources(device_t dev) +static void gma_func0_read_resources(struct device *dev) { u8 reg8;
diff --git a/src/northbridge/intel/i945/northbridge.c b/src/northbridge/intel/i945/northbridge.c index fdb37b1..794c61e 100644 --- a/src/northbridge/intel/i945/northbridge.c +++ b/src/northbridge/intel/i945/northbridge.c @@ -28,7 +28,7 @@
static int get_pcie_bar(u32 *base) { - device_t dev; + struct device *dev; u32 pciexbar_reg;
*base = 0; @@ -57,7 +57,7 @@ return 0; }
-static void pci_domain_set_resources(device_t dev) +static void pci_domain_set_resources(struct device *dev) { uint32_t pci_tolm; uint8_t tolud, reg8; @@ -149,7 +149,7 @@ .ops_pci_bus = pci_bus_default_ops, };
-static void mc_read_resources(device_t dev) +static void mc_read_resources(struct device *dev) { u32 pcie_config_base; int buses; @@ -163,7 +163,7 @@ } }
-static void intel_set_subsystem(device_t dev, unsigned int vendor, +static void intel_set_subsystem(struct device *dev, unsigned int vendor, unsigned int device) { if (!vendor || !device) { @@ -199,7 +199,7 @@ .devices = pci_device_ids, };
-static void cpu_bus_init(device_t dev) +static void cpu_bus_init(struct device *dev) { initialize_cpus(dev->link_list); } @@ -212,7 +212,7 @@ .scan_bus = 0, };
-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)