aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/i945/gma.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-02-08 14:46:22 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-04-30 09:22:19 +0000
commit658a9348f07672a16163f6be5a2b4448bff64188 (patch)
tree9e4e0f0731155a41b7da32baadd9275eb3ed3516 /src/northbridge/intel/i945/gma.c
parent6dcdaaf2053061add095f6225ccd3e38d47e08b2 (diff)
nb/intel/i945: Get rid of device_t
Use of `device_t`has been abandoned in ramstage. Change-Id: I2cc938958097e416b85f6592cb8a4e645a3746ed Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23654 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/northbridge/intel/i945/gma.c')
-rw-r--r--src/northbridge/intel/i945/gma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c
index 5ca06a9098..6c3d6ae5f3 100644
--- a/src/northbridge/intel/i945/gma.c
+++ b/src/northbridge/intel/i945/gma.c
@@ -746,7 +746,7 @@ static void gma_func1_init(struct device *dev)
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) {
@@ -761,7 +761,7 @@ 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_i945_config *chip = dev->chip_info;
@@ -770,7 +770,7 @@ intel_gma_get_controller_info(void)
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)
@@ -779,7 +779,7 @@ static void gma_ssdt(device_t device)
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;