diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-06-08 17:20:38 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-06-09 16:30:37 +0000 |
commit | 7a5f77142f68edd03874015300e471eb80d03c45 (patch) | |
tree | 055decdf9c0c5de4ea6dfb3bc8af106c9207a640 /src/southbridge/intel/lynxpoint/sata.c | |
parent | 91b7cb1b7ad35ff6ecc76be2641cf0bfe5c24f8e (diff) | |
download | coreboot-7a5f77142f68edd03874015300e471eb80d03c45.tar.xz |
sb/intel/lynxpoint: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I064ff5e76dd95c1770cd24139195b2a5fff2d382
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26974
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/lynxpoint/sata.c')
-rw-r--r-- | src/southbridge/intel/lynxpoint/sata.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/southbridge/intel/lynxpoint/sata.c b/src/southbridge/intel/lynxpoint/sata.c index c45579b045..30e8aa8732 100644 --- a/src/southbridge/intel/lynxpoint/sata.c +++ b/src/southbridge/intel/lynxpoint/sata.c @@ -301,7 +301,7 @@ static void sata_init(struct device *dev) pci_write_config32(dev, 0x300, reg32); } -static void sata_enable(device_t dev) +static void sata_enable(struct device *dev) { /* Get the chip configuration */ config_t *config = dev->chip_info; @@ -322,7 +322,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, |