summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/sata.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-13 13:40:39 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-05-18 12:17:49 +0000
commitbe841404cc836aa0e4727f7cad7337cb38371e1d (patch)
treedc72356786a9ef76cf0b20dc415f2aa94254e977 /src/southbridge/intel/ibexpeak/sata.c
parent77f7a6e3867307a4835c2d0013f73ada079d09d6 (diff)
downloadcoreboot-be841404cc836aa0e4727f7cad7337cb38371e1d.tar.xz
sb/intel/ibexpeak: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I7d9d0a205f9a650eb87bc8f90f2a28a5c4b2891c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26259 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/intel/ibexpeak/sata.c')
-rw-r--r--src/southbridge/intel/ibexpeak/sata.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/southbridge/intel/ibexpeak/sata.c b/src/southbridge/intel/ibexpeak/sata.c
index 19ef098808..3833e12a70 100644
--- a/src/southbridge/intel/ibexpeak/sata.c
+++ b/src/southbridge/intel/ibexpeak/sata.c
@@ -209,7 +209,7 @@ static void sata_init(struct device *dev)
pch_iobp_update(0xea00408a, 0xfffffcff, 0x00000100);
}
-static void sata_enable(device_t dev)
+static void sata_enable(struct device *dev)
{
/* Get the chip configuration */
config_t *config = dev->chip_info;
@@ -234,7 +234,8 @@ static void sata_enable(device_t dev)
pci_write_config16(dev, 0x90, map);
}
-static void sata_set_subsystem(device_t dev, unsigned vendor, unsigned device)
+static void sata_set_subsystem(struct device *dev, unsigned vendor,
+ unsigned device)
{
if (!vendor || !device) {
pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
@@ -246,7 +247,7 @@ static void sata_set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
-static void sata_fill_ssdt(device_t dev)
+static void sata_fill_ssdt(struct device *dev)
{
config_t *config = dev->chip_info;
generate_sata_ssdt_ports("\\_SB_.PCI0.SATA", config->sata_port_map);