From fea02e1439476f2acbd151a4d1873cd118f33a60 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 8 Feb 2018 14:59:03 +0100 Subject: nb/x4x: Get rid of device_t Use of `device_t` has been abandoned in ramstage. Change-Id: Ib3e708a7fa9f0a78dc704a502a2f01ee0fe209ae Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/23655 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/northbridge/intel/x4x/gma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/northbridge/intel/x4x/gma.c') diff --git a/src/northbridge/intel/x4x/gma.c b/src/northbridge/intel/x4x/gma.c index cf3804d50c..8ce1a5d2e4 100644 --- a/src/northbridge/intel/x4x/gma.c +++ b/src/northbridge/intel/x4x/gma.c @@ -430,7 +430,7 @@ static void gma_func0_disable(struct device *dev) pci_write_config16(dev_host, D0F0_GGC, ggc); } -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) { @@ -446,14 +446,14 @@ static void gma_set_subsystem(device_t dev, unsigned int vendor, const struct i915_gpu_controller_info * intel_gma_get_controller_info(void) { - device_t dev = dev_find_slot(0, PCI_DEVFN(0x2, 0)); + struct device *dev = dev_find_slot(0, PCI_DEVFN(0x2, 0)); if (!dev) return NULL; struct northbridge_intel_x4x_config *chip = dev->chip_info; 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) -- cgit v1.2.3