aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx/sata.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-13 13:36:44 +0200
committerNico Huber <nico.h@gmx.de>2018-05-24 18:05:56 +0000
commit1a8c1df55bf7bd84a16ac49f420001d66292dd87 (patch)
treec03118bc61fa12f87f91f9b92590b3f561e1d972 /src/southbridge/intel/i82801jx/sata.c
parentac350f82cd4dfab20a6fb49e5dea536ae448e054 (diff)
sb/intel/i82801jx: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I37be7672c88b28180d7d4b46928ebed8472ec020 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26257 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/i82801jx/sata.c')
-rw-r--r--src/southbridge/intel/i82801jx/sata.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/southbridge/intel/i82801jx/sata.c b/src/southbridge/intel/i82801jx/sata.c
index 9fe1f9ec15..b511c54d57 100644
--- a/src/southbridge/intel/i82801jx/sata.c
+++ b/src/southbridge/intel/i82801jx/sata.c
@@ -208,7 +208,8 @@ static void sata_init(struct device *const dev)
pci_write_config32(dev, 0x94, sclkcg);
if (is_mobile && config->sata_traffic_monitor) {
- const device_t lpc_dev = dev_find_slot(0, PCI_DEVFN(0x1f, 0));
+ struct device *const lpc_dev = dev_find_slot(0,
+ PCI_DEVFN(0x1f, 0));
if (((pci_read_config8(lpc_dev, D31F0_CxSTATE_CNF)
>> 3) & 3) == 3) {
u8 reg8 = pci_read_config8(dev, 0x9c);
@@ -224,7 +225,7 @@ static void sata_init(struct device *const dev)
sata_program_indexed(dev, is_mobile);
}
-static void sata_enable(device_t dev)
+static void sata_enable(struct device *dev)
{
/* Get the chip configuration */
const config_t *const config = dev->chip_info;
@@ -251,7 +252,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,